Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix async dispatcher send #67

Merged
merged 1 commit into from
May 17, 2024
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
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"
}
Loading