mirror of
https://github.com/natekspencer/hacs-oasis_mini.git
synced 2025-11-17 01:23:43 -05:00
Add update entity
This commit is contained in:
@@ -41,7 +41,8 @@ class OasisMiniSelectEntity(OasisMiniEntity, SelectEntity):
|
||||
for track in self.device.playlist
|
||||
]
|
||||
self._attr_options = options
|
||||
self._attr_current_option = options[self.device.playlist_index]
|
||||
index = min(self.device.playlist_index, len(options) - 1)
|
||||
self._attr_current_option = options[index]
|
||||
if self.hass:
|
||||
return super()._handle_coordinator_update()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user