Skip to content

Commit

Permalink
Some fixes from home-assistant/core#30229
Browse files Browse the repository at this point in the history
  • Loading branch information
garbled1 committed May 9, 2020
1 parent 2063211 commit 60c9af0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
6 changes: 2 additions & 4 deletions custom_components/balboa/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,7 @@ async def async_setup_entry(hass, entry, async_add_entities):
"""Set up the spa climate device."""
spa = hass.data[BALBOA_DOMAIN][entry.entry_id]
name = entry.data[CONF_NAME]
devs = []
devs.append(BalboaSpaClimate(hass, spa, name))
async_add_entities(devs, True)
async_add_entities([BalboaSpaClimate(hass, spa, name)], True)


class BalboaSpaClimate(BalboaEntity, ClimateDevice):
Expand Down Expand Up @@ -110,7 +108,7 @@ def fan_mode(self) -> str:
@property
def name(self):
"""Return the name of the spa."""
return f"{self._name}"
return self._name

@property
def precision(self):
Expand Down
3 changes: 1 addition & 2 deletions custom_components/balboa/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"title": "Balboa Spa",
"step": {
"user": {
"title": "Connect to the device",
"title": "Connect to the Balboa WiFi device",
"data": {
"host": "Host",
"name": "Name"
Expand All @@ -12,7 +12,6 @@
},
"error": {
"cannot_connect": "Failed to connect, please try again",
"invalid_auth": "Invalid authentication",
"unknown": "Unexpected error"
},
"abort": {
Expand Down

0 comments on commit 60c9af0

Please sign in to comment.