Fix Plugwise schema name display and non_device_class icons (#36815)

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: Bouwe Westerdijk <11290930+bouwew@users.noreply.github.com>
This commit is contained in:
authored and GitHub committed 2020-06-16 14:49:13 +02:00
1 parent 6db5ff98ed
commit 29df13abe9
2 files changed
+12 -2

No files matched your search

+1 -2
View File
@@ -122,8 +122,7 @@ class PwThermostat(SmileGateway, ClimateEntity):
"""Return the device specific state attributes."""
attributes = {}
if self._schema_names:
if len(self._schema_names) > 1:
attributes["available_schemas"] = self._schema_names
attributes["available_schemas"] = self._schema_names
if self._selected_schema:
attributes["selected_schema"] = self._selected_schema
return attributes