mirror of
https://github.com/home-assistant/core.git
synced 2025-07-28 15:47:12 +00:00
Allow falsy values for media player attributes
This commit is contained in:
parent
58c3b03b79
commit
08f2a67de4
@ -484,7 +484,7 @@ class MediaPlayerDevice(Entity):
|
|||||||
else:
|
else:
|
||||||
state_attr = {
|
state_attr = {
|
||||||
attr: getattr(self, attr) for attr
|
attr: getattr(self, attr) for attr
|
||||||
in ATTR_TO_PROPERTY if getattr(self, attr)
|
in ATTR_TO_PROPERTY if getattr(self, attr) is not None
|
||||||
}
|
}
|
||||||
|
|
||||||
if self.media_image_url:
|
if self.media_image_url:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user