Skip to content

Commit

Permalink
Merge pull request #67 from elad-bar/fix-async-dispatcher-send
Browse files Browse the repository at this point in the history
Fix async dispatcher send
  • Loading branch information
elad-bar authored May 17, 2024
2 parents 5dd7b05 + 2cb6229 commit d99fce3
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## v3.0.9

- Fix async dispatcher send

## v3.0.8

- Fix warning - StrEnum is a deprecated alias which will be removed in HA Core 2025.5. Use enum.StrEnum instead
Expand Down
6 changes: 2 additions & 4 deletions custom_components/shinobi/managers/rest_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from homeassistant.const import ATTR_DATE
from homeassistant.core import HomeAssistant
from homeassistant.helpers.aiohttp_client import async_create_clientsession
from homeassistant.helpers.dispatcher import async_dispatcher_send
from homeassistant.helpers.dispatcher import dispatcher_send

from ..common.connectivity_status import ConnectivityStatus
from ..common.consts import (
Expand Down Expand Up @@ -684,6 +684,4 @@ def _async_dispatcher_send(self, signal: str, *args: Any) -> None:
)

else:
async_dispatcher_send(
self._hass, signal, self._config_manager.entry_id, *args
)
dispatcher_send(self._hass, signal, self._config_manager.entry_id, *args)
6 changes: 2 additions & 4 deletions custom_components/shinobi/managers/websockets.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

from homeassistant.core import HomeAssistant, callback
from homeassistant.helpers.aiohttp_client import async_create_clientsession
from homeassistant.helpers.dispatcher import async_dispatcher_send
from homeassistant.helpers.dispatcher import dispatcher_send
from homeassistant.helpers.event import async_track_time_interval

from ..common.connectivity_status import ConnectivityStatus
Expand Down Expand Up @@ -653,6 +653,4 @@ def _async_dispatcher_send(self, signal: str, *args: Any) -> None:
)

else:
async_dispatcher_send(
self._hass, signal, self._config_manager.entry_id, *args
)
dispatcher_send(self._hass, signal, self._config_manager.entry_id, *args)
2 changes: 1 addition & 1 deletion custom_components/shinobi/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
"iot_class": "local_polling",
"issue_tracker": "https://github.com/elad-bar/ha-shinobi/issues",
"requirements": [],
"version": "3.0.8"
"version": "3.0.9"
}

0 comments on commit d99fce3

Please sign in to comment.