Skip to content

Commit 2e5fdd4

Browse files
authored
Merge pull request #62 from plugwise/schemas
Show available_schemas only when more than 1
2 parents 68f6f45 + 302f649 commit 2e5fdd4

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

custom_components/plugwise-beta/climate.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,8 @@ def device_state_attributes(self):
168168
"""Return the device specific state attributes."""
169169
attributes = {}
170170
if self._schema_names:
171-
attributes["available_schemas"] = self._schema_names
171+
if len(self._schema_names) > 1:
172+
attributes["available_schemas"] = self._schema_names
172173
if self._selected_schema:
173174
attributes["selected_schema"] = self._selected_schema
174175
return attributes

custom_components/plugwise-beta/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"domain": "plugwise-beta",
33
"name": "Plugwise Beta for Home Assistant",
44
"documentation": "https://github.com/plugwise/plugwise-beta",
5-
"requirements": ["Plugwise_Smile==0.2.7"],
5+
"requirements": ["Plugwise_Smile==0.2.9"],
66
"dependencies": [],
77
"codeowners": ["@CoMPaTech","@bouwew"],
88
"config_flow": true

0 commit comments

Comments
 (0)