6fcb1b548e4df19d9aaa34beba1e9f1fe9ff511e,homeassistant/components/sensor/wunderground.py,WUndergroundSensor,device_state_attributes,#WUndergroundSensor#,113
Before Change
@property
def device_state_attributes(self):
Return the state attributes.
return {
ATTR_ATTRIBUTION: CONF_ATTRIBUTION,
}
@property
def entity_picture(self):
Return the entity picture.
After Change
for alert in ALERTS_ATTRS:
if data[alert]:
if multiple_alerts:
dkey = alert.capitalize() + "_" + data["type"]
else:
dkey = alert.capitalize()
attrs[dkey] = data[alert]
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: home-assistant/home-assistant
Commit Name: 6fcb1b548e4df19d9aaa34beba1e9f1fe9ff511e
Time: 2016-10-14
Author: tchello.mello@gmail.com
File Name: homeassistant/components/sensor/wunderground.py
Class Name: WUndergroundSensor
Method Name: device_state_attributes
Project Name: WZBSocialScienceCenter/tmtoolkit
Commit Name: 175db05368e99ded0fbeb9a20bec1c2a01b73850
Time: 2020-01-22
Author: markus.konrad@wzb.eu
File Name: tmtoolkit/preprocess/_tmpreproc.py
Class Name: TMPreproc
Method Name: __str__
Project Name: home-assistant/home-assistant
Commit Name: c12b7e70d956b67df259b672530b0aa8d0d2456c
Time: 2015-08-25
Author: Zyell@users.noreply.github.com
File Name: homeassistant/components/thermostat/nest.py
Class Name: NestThermostat
Method Name: name