Skip to content

Commit

Permalink
chore: bump raincloudy to 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
vanstinator committed May 25, 2020
1 parent eb6501c commit d0d6505
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions custom_components/raincloud/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,13 @@ def __init__(self, data, sensor_type):
self._sensor_type = sensor_type
self._state = None

if hasattr(self.data, '_faucet'):
self._name = f"{self.data._faucet.id}: Zone {self.data.id} {KEY_MAP.get(self._sensor_type)}"
if self.data.name is '':
if hasattr(self.data, '_faucet'):
self._name = f"{self.data._faucet.id}: Zone {self.data.id} {KEY_MAP.get(self._sensor_type)}"
else:
self._name = f"{self.data.id} {KEY_MAP.get(self._sensor_type)}"
else:
self._name = f"{self.data.id} {KEY_MAP.get(self._sensor_type)}"
self._name = f"{self.data.name} {KEY_MAP.get(self._sensor_type)}"

@property
def name(self):
Expand Down
2 changes: 1 addition & 1 deletion custom_components/raincloud/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
"domain": "raincloud",
"name": "Melnor RainCloud",
"documentation": "https://www.home-assistant.io/integrations/raincloud",
"requirements": ["raincloudy==1.0a3"],
"requirements": ["raincloudy==1.0.0"],
"codeowners": ["@vanstinator"]
}

0 comments on commit d0d6505

Please sign in to comment.