diff --git a/homeassistant/components/media_player/__init__.py b/homeassistant/components/media_player/__init__.py index 88af4733c78..19ff0540c6b 100644 --- a/homeassistant/components/media_player/__init__.py +++ b/homeassistant/components/media_player/__init__.py @@ -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: