Skip to content

Commit

Permalink
Fixed small bug
Browse files Browse the repository at this point in the history
  • Loading branch information
alexdelprete committed Feb 28, 2024
1 parent 001c6b4 commit 2639178
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/4noks_elios4you/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ async def async_get_data(self):
_LOGGER.debug("async_get_data (ERROR): @dat data is None")

sta_parsed = self.telnet_get_data("@sta")
if dat_parsed is not None:
if sta_parsed is not None:
_LOGGER.debug("async_get_data (WARNING): parsing @sta data")
for key, value in sta_parsed.items():
# @sta returns only float numbers as strings
Expand All @@ -214,7 +214,7 @@ async def async_get_data(self):
_LOGGER.debug("async_get_data (ERROR): @sta data is None")

inf_parsed = self.telnet_get_data("@inf")
if dat_parsed is not None:
if inf_parsed is not None:
_LOGGER.debug("async_get_data (WARNING): parsing @inf data")
for key, value in inf_parsed.items():
# @inf returns only strings
Expand Down

0 comments on commit 2639178

Please sign in to comment.