Skip to content

Commit

Permalink
Merge pull request #26 from jshtz4/main
Browse files Browse the repository at this point in the history
Correct 2024.5 warning and error
  • Loading branch information
AlexxIT authored May 23, 2024
2 parents 371000c + 8ad4269 commit 0fc5e66
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions custom_components/stream_assist/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

from homeassistant.config_entries import ConfigEntry
from homeassistant.const import Platform
from homeassistant.core import HomeAssistant, ServiceResponse, SupportsResponse
from homeassistant.core import HomeAssistant, ServiceResponse, SupportsResponse, ServiceCall
from homeassistant.helpers.device_registry import DeviceEntry
from homeassistant.helpers.typing import ConfigType, ServiceCallType
from homeassistant.helpers.typing import ConfigType

from .core import DOMAIN, get_stream_source, assist_run, stream_run
from .core.stream import Stream
Expand All @@ -15,7 +15,7 @@


async def async_setup(hass: HomeAssistant, config: ConfigType):
async def run(call: ServiceCallType) -> ServiceResponse:
async def run(call: ServiceCall) -> ServiceResponse:
stt_stream = Stream()

try:
Expand Down
2 changes: 1 addition & 1 deletion custom_components/stream_assist/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ async def async_added_to_hass(self) -> None:
def signal(self, value: str, extra: dict = None):
self._attr_native_value = value or STATE_IDLE
self._attr_extra_state_attributes = extra
self.async_write_ha_state()
self.schedule_update_ha_state()

0 comments on commit 0fc5e66

Please sign in to comment.