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

Correct 2024.5 warning and error #26

Merged
merged 2 commits into from
May 23, 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
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()