Skip to content

Commit

Permalink
refactor: fix typing issues
Browse files Browse the repository at this point in the history
  • Loading branch information
EuleMitKeule committed Jan 16, 2024
1 parent 12506a8 commit de4d4df
Show file tree
Hide file tree
Showing 3 changed files with 79 additions and 2 deletions.
2 changes: 1 addition & 1 deletion eq3btsmart/bleakconnection.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ async def async_get_connection(self) -> BleakClient:

self._on_connection_event()

if self._conn.is_connected:
if self._conn is not None and self._conn.is_connected:
_LOGGER.debug("[%s] Connected", self._name)
else:
raise BackendException("Can't connect")
Expand Down
78 changes: 77 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ bleak = "^0.21.1"
construct = "^2.10.68"
construct-typing = "^0.6.2"
homeassistant = "^2023.1.1"
bleak-retry-connector = "^3.4.0"

[tool.poetry.group.dev.dependencies]
ruff = "^0.1.13"
Expand Down

0 comments on commit de4d4df

Please sign in to comment.