Skip to content

Commit

Permalink
alpha 4
Browse files Browse the repository at this point in the history
  • Loading branch information
hikirsch committed Jan 7, 2025
1 parent b33a0b7 commit 6b003b0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions custom_components/htd/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ async def async_setup_entry(hass: HomeAssistant, config_entry: ConfigEntry):
config_entry.runtime_data = get_client(kind, host, port)

config_entry.async_on_unload(
config_entry.add_update_listener(update_listener)
config_entry.add_update_listener(async_update_listener)
)

_async_cleanup_registry_entries(hass, config_entry)
Expand All @@ -42,7 +42,7 @@ async def async_setup_entry(hass: HomeAssistant, config_entry: ConfigEntry):
return True


async def update_listener(
async def async_update_listener(
hass: HomeAssistant,
config_entry: ConfigEntry
) -> None:
Expand Down
4 changes: 2 additions & 2 deletions custom_components/htd/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
"@hikirsch"
],
"name": "Home Theater Direct",
"version": "2.0.0-alpha.3",
"version": "2.0.0-alpha.4",
"iot_class": "local_push",
"integration_type": "hub",
"dependencies": [],
"requirements": [
"htd_client==0.0.6"
"htd_client==0.0.8"
],
"config_flow": true,
"dhcp": [
Expand Down
3 changes: 3 additions & 0 deletions custom_components/htd/media_player.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,9 @@ def _do_update(self, zone: int):
if zone is not None and zone != self.zone:
return

if not self.client.has_zone_data(self.zone):
return

# if there's a target volume for mca, don't update yet
if isinstance(self.client, HtdMcaClient) and self.client.has_volume_target(self.zone):
return
Expand Down

0 comments on commit 6b003b0

Please sign in to comment.