Allow falsy values for media player attributes

This commit is contained in:
Paulus Schoutsen 2015-09-15 12:58:19 -07:00
parent 58c3b03b79
commit 08f2a67de4

View File

@ -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: