Skip to content

Commit

Permalink
fix: mqtt tweak
Browse files Browse the repository at this point in the history
This will break chapter and key descriptions but will fix soon.
  • Loading branch information
cdnninja committed Jun 15, 2024
1 parent a1c35f6 commit 704997e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
6 changes: 6 additions & 0 deletions custom_components/yoto/coordinator.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,3 +184,9 @@ async def async_set_light(self, player_id: str, key: str, color: str) -> None:
await self.hass.async_add_executor_job(
self.yoto_manager.set_player_config, player_id, config
)

async def async_update_card_detail(self, cardId):
""" Get chapter and titles for the card"""
await self.hass.async_add_executor_job(
self.yoto_manager.update_card_detail(cardId)
)
2 changes: 1 addition & 1 deletion custom_components/yoto/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
"iot_class": "cloud_polling",
"issue_tracker": "https://github.com/cdnninja/yoto_ha/issues",
"loggers": ["yoto", "yoto_api", "paho_mqtt"],
"requirements": ["yoto-api==1.19.2"],
"requirements": ["yoto-api==1.20.1"],
"version": "1.16.0"
}
3 changes: 2 additions & 1 deletion custom_components/yoto/media_player.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,4 +205,5 @@ def _handle_devices_update(self) -> None:
"""Handle updated data from the coordinator."""
if not self.enabled:
return
self.async_write_ha_state()
else:
self.async_write_ha_state()

0 comments on commit 704997e

Please sign in to comment.