fcdfebefd9d452952d16669c1257292865d7405b,homeassistant/components/sensor/wunderground.py,WUndergroundSensor,device_state_attributes,#WUndergroundSensor#,175

Before Change



        attrs[ATTR_ATTRIBUTION] = CONF_ATTRIBUTION

        if not self.rest.alerts or self._condition != "alerts":
            return attrs

        multiple_alerts = len(self.rest.alerts) > 1
        for data in self.rest.alerts:
            for alert in ALERTS_ATTRS:
                if data[alert]:
                    if multiple_alerts:
                        dkey = alert.capitalize() + "_" + data["type"]
                    else:
                        dkey = alert.capitalize()
                    attrs[dkey] = data[alert]
        return attrs

    @property
    def entity_picture(self):

After Change


                attrs[attr] = callback

        attrs[ATTR_ATTRIBUTION] = CONF_ATTRIBUTION
        attrs[ATTR_FRIENDLY_NAME] = self._cfg_expand("friendly_name")
        return attrs

    @property
    def icon(self):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 10

Instances


Project Name: home-assistant/home-assistant
Commit Name: fcdfebefd9d452952d16669c1257292865d7405b
Time: 2017-05-07
Author: pezinek@gmail.com
File Name: homeassistant/components/sensor/wunderground.py
Class Name: WUndergroundSensor
Method Name: device_state_attributes


Project Name: home-assistant/home-assistant
Commit Name: 7a70496b116569c0581927ed30a5c884dc379c42
Time: 2017-05-06
Author: pezinek@gmail.com
File Name: homeassistant/components/sensor/wunderground.py
Class Name: WUndergroundSensor
Method Name: device_state_attributes


Project Name: home-assistant/home-assistant
Commit Name: fcdfebefd9d452952d16669c1257292865d7405b
Time: 2017-05-07
Author: pezinek@gmail.com
File Name: homeassistant/components/sensor/wunderground.py
Class Name: WUndergroundSensor
Method Name: entity_picture


Project Name: home-assistant/home-assistant
Commit Name: fcdfebefd9d452952d16669c1257292865d7405b
Time: 2017-05-07
Author: pezinek@gmail.com
File Name: homeassistant/components/sensor/wunderground.py
Class Name: WUndergroundSensor
Method Name: device_state_attributes


Project Name: home-assistant/home-assistant
Commit Name: 7a70496b116569c0581927ed30a5c884dc379c42
Time: 2017-05-06
Author: pezinek@gmail.com
File Name: homeassistant/components/sensor/wunderground.py
Class Name: WUndergroundSensor
Method Name: entity_picture