Skip to content

Commit

Permalink
增加燃气用量
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Hu committed Aug 25, 2024
1 parent 029a9b5 commit 73e12d2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions custom_components/airtub_udp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,8 @@ async def udp_listener(
data_dict["mod"] = 0
if "flt" not in data_dict:
data_dict["flt"] = 0
if "gas" not in data_dict:
data_dict["gas"] = -1
hass.data[DOMAIN]["data"] = data_dict
hass.bus.async_fire(EVENT_NEW_DATA)
except socket.error as e:
Expand Down

0 comments on commit 73e12d2

Please sign in to comment.