Skip to content

Commit

Permalink
fix: don't try to call subscribe twice with bad version
Browse files Browse the repository at this point in the history
  • Loading branch information
tsvi authored Jan 27, 2025
1 parent e712042 commit 8d33049
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/sleep_as_android/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ async def subscribe_2021_07(
self._subscription_state,
topic,
)
if self._ha_version >= AwesomeVersion("2022.3.0"):
elif self._ha_version >= AwesomeVersion("2022.3.0"):
self._subscription_state = await subscribe_2022_03(
self.hass,
self._subscription_state,
Expand Down

0 comments on commit 8d33049

Please sign in to comment.