b50216600baa7e0516ed3254b37d7b8ba1bcf5f3,homeassistant/components/media_player/cast.py,CastDevice,state_attributes,#CastDevice#,81
Before Change
//if ramp.image_url:
// state_attr[ATTR_MEDIA_IMAGE_URL] = ramp.image_url
if hasattr(media_status, "duration"):
state_attr[ATTR_MEDIA_DURATION] = media_status.duration
state_attr[ATTR_MEDIA_VOLUME] = media_status.volume_level
After Change
media_status = self.cast.media_status
state_attr = {
ATTR_MEDIA_STATE: self.media_state,
"application_id": self.cast.app_id,
}
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 2
Instances
Project Name: home-assistant/home-assistant
Commit Name: b50216600baa7e0516ed3254b37d7b8ba1bcf5f3
Time: 2015-05-29
Author: paulus@paulusschoutsen.nl
File Name: homeassistant/components/media_player/cast.py
Class Name: CastDevice
Method Name: state_attributes
Project Name: markovmodel/PyEMMA
Commit Name: a68a41b9182a6b9f112f659e893800631c13eb39
Time: 2017-12-17
Author: m.scherer@fu-berlin.de
File Name: pyemma/_base/serialization/serialization.py
Class Name: SerializableMixIn
Method Name: __setstate__
Project Name: biolab/orange3
Commit Name: 63d28365ee4e33072e12aaab4db180f85da6be6f
Time: 2013-01-17
Author: anze.staric@gmail.com
File Name: Orange/widgets/widget.py
Class Name: OWWidget
Method Name: __init__