Bump afsapi to 0.2.6 (#75041)
parent
620d2ed8fd
commit
51a4c98562
|
@ -2,7 +2,7 @@
|
|||
"domain": "frontier_silicon",
|
||||
"name": "Frontier Silicon",
|
||||
"documentation": "https://www.home-assistant.io/integrations/frontier_silicon",
|
||||
"requirements": ["afsapi==0.2.5"],
|
||||
"requirements": ["afsapi==0.2.6"],
|
||||
"codeowners": ["@wlcrs"],
|
||||
"iot_class": "local_polling"
|
||||
}
|
||||
|
|
|
@ -179,11 +179,14 @@ class AFSAPIDevice(MediaPlayerEntity):
|
|||
self._attr_media_artist = await afsapi.get_play_artist()
|
||||
self._attr_media_album_name = await afsapi.get_play_album()
|
||||
|
||||
self._attr_source = (await afsapi.get_mode()).label
|
||||
radio_mode = await afsapi.get_mode()
|
||||
self._attr_source = radio_mode.label if radio_mode is not None else None
|
||||
|
||||
self._attr_is_volume_muted = await afsapi.get_mute()
|
||||
self._attr_media_image_url = await afsapi.get_play_graphic()
|
||||
self._attr_sound_mode = (await afsapi.get_eq_preset()).label
|
||||
|
||||
eq_preset = await afsapi.get_eq_preset()
|
||||
self._attr_sound_mode = eq_preset.label if eq_preset is not None else None
|
||||
|
||||
volume = await self.fs_device.get_volume()
|
||||
|
||||
|
|
|
@ -89,7 +89,7 @@ adguardhome==0.5.1
|
|||
advantage_air==0.3.1
|
||||
|
||||
# homeassistant.components.frontier_silicon
|
||||
afsapi==0.2.5
|
||||
afsapi==0.2.6
|
||||
|
||||
# homeassistant.components.agent_dvr
|
||||
agent-py==0.0.23
|
||||
|
|
Loading…
Reference in New Issue