mirror of
https://github.com/XiaoMi/ha_xiaomi_home.git
synced 2026-01-15 22:10:43 +08:00
fix: default value for the required property state
This commit is contained in:
parent
aafa1a46b4
commit
3bdb019b87
@ -438,7 +438,7 @@ class FeatureState(MIoTServiceEntity, MediaPlayerEntity):
|
||||
return (self.get_map_value(map_=self._playing_state_map,
|
||||
key=self.get_prop_value(
|
||||
prop=self._prop_playing_state))
|
||||
if self._prop_playing_state else None)
|
||||
if self._prop_playing_state else MediaPlayerState.ON)
|
||||
|
||||
|
||||
class WifiSpeaker(FeatureVolumeSet, FeatureVolumeMute, FeaturePlay,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user