mirror of
https://github.com/home-assistant/core.git
synced 2025-08-10 08:05:06 +02:00
Allow falsy values for media player attributes
This commit is contained in:
@@ -484,7 +484,7 @@ class MediaPlayerDevice(Entity):
|
||||
else:
|
||||
state_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:
|
||||
|
Reference in New Issue
Block a user