Skip to content

Commit 3847986

Browse files
authored
Merge pull request #53 from ankostis/patch-1
fix #35: bad identation broke setup
2 parents 251981e + d332136 commit 3847986

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

custom_components/midea_dehumidifier/__init__.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -79,14 +79,14 @@ async def async_setup(hass, config):
7979
appliancesStr = ""
8080
for a in appliances:
8181
appliancesStr = "[id="+a["id"]+" type="+a["type"]+" name="+a["name"]+"]"
82-
if a["onlineStatus"] == "1":
83-
appliancesStr += " is online,"
84-
else:
85-
appliancesStr += " is offline,"
86-
if a["activeStatus"] == "1":
87-
appliancesStr += " is active.\n"
88-
else:
89-
appliancesStr += " is not active.\n"
82+
if a["onlineStatus"] == "1":
83+
appliancesStr += " is online,"
84+
else:
85+
appliancesStr += " is offline,"
86+
if a["activeStatus"] == "1":
87+
appliancesStr += " is active.\n"
88+
else:
89+
appliancesStr += " is not active.\n"
9090

9191
_LOGGER.info("midea-dehumi: "+appliancesStr)
9292

0 commit comments

Comments
 (0)