Skip to content

Commit

Permalink
Fix missing program name Andre0512/hon#188
Browse files Browse the repository at this point in the history
  • Loading branch information
Andre0512 committed Mar 29, 2024
1 parent 53691e3 commit bdf9d31
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
10 changes: 3 additions & 7 deletions pyhon/hon.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,9 @@ async def _create_appliance(
if appliance.mac_address == "":
return
try:
await asyncio.gather(
*[
appliance.load_attributes(),
appliance.load_commands(),
appliance.load_statistics(),
]
)
await appliance.load_commands()
await appliance.load_attributes()
await appliance.load_statistics()
except (KeyError, ValueError, IndexError) as error:
_LOGGER.exception(error)
_LOGGER.error("Device data - %s", appliance_data)
Expand Down
2 changes: 1 addition & 1 deletion pyhon/parameter/program.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def ids(self) -> Dict[int, str]:
for name, parameter in self._programs.items():
if "iot_" in name:
continue
if parameter.parameters.get("prCode"):
if not parameter.parameters.get("prCode"):
continue
if (fav := parameter.parameters.get("favourite")) and fav.value == "1":
continue
Expand Down

0 comments on commit bdf9d31

Please sign in to comment.