Skip to content

Commit

Permalink
Update cloud.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Flying-Tom authored May 22, 2024
1 parent 9b75ec4 commit 0a40f53
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions custom_components/midea_ac_lan/midea/core/cloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,8 @@ async def list_appliances(self, home_id) -> dict | None:
model_number = int(appliance.get("modelNumber", 0))
except ValueError:
model_number = 0
except TypeError:
model_number = 0
device_info = {
"name": appliance.get("name"),
"type": int(appliance.get("type"), 16),
Expand Down

0 comments on commit 0a40f53

Please sign in to comment.