Skip to content

Commit

Permalink
fix recursive error
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitry Mamontov committed Jan 22, 2022
1 parent 6530631 commit 5dfe0c5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion custom_components/ledfx/core/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,9 @@ async def async_update(self) -> None:

self._available = True
except Exception as e:
_LOGGER.error("ERROR LedFx connection error ({}:{}) %r".format(self.ip, self.port), e)
if self._available:
_LOGGER.error("ERROR LedFx connection error ({}:{}) %r".format(self.ip, self.port), e)

self._available = False

current_devices = []
Expand Down

0 comments on commit 5dfe0c5

Please sign in to comment.