Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions custom_components/intellicenter/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,10 @@ def reconnected(self, controller):
@callback
def disconnected(self, controller, exc):
"""Handle updates from the Pentair system."""
_LOGGER.info(
f"disconnected from system: '{controller.systemInfo.propName}'"
)
if not controller.systemInfo is None:
_LOGGER.info(
f"disconnected from system: '{controller.systemInfo.propName}'"
)
dispatcher.async_dispatcher_send(hass, self.CONNECTION_SIGNAL, False)

@callback
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ def __init__(self, host, port=6681, loop=None):
self._protocol = None

self._diconnectedCallback = None
self._systemInfo = None

self._requests = {}

Expand Down
Loading