ba43218a73a1451154808580286462a1fe6ab598,homeassistant/components/sensor/wunderground.py,WUndergroundSensor,device_state_attributes,#WUndergroundSensor#,685
Before Change
@property
def device_state_attributes(self):
Return the state attributes.
attrs = self._cfg_expand("device_state_attributes", {})
for (attr, callback) in attrs.items():
try:
attrs[attr] = callback(self.rest)
except TypeError:
attrs[attr] = callback
except (KeyError, IndexError) as err:
_LOGGER.warning("Failed to parse response from WU API: %s",
err)
attrs[ATTR_ATTRIBUTION] = CONF_ATTRIBUTION
attrs[ATTR_FRIENDLY_NAME] = self._cfg_expand("friendly_name")
return attrs
After Change
@property
def device_state_attributes(self):
Return the state attributes.
return self._attributes
@property
def icon(self):
Return icon.
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: home-assistant/home-assistant
Commit Name: ba43218a73a1451154808580286462a1fe6ab598
Time: 2017-11-25
Author: milanvo@users.noreply.github.com
File Name: homeassistant/components/sensor/wunderground.py
Class Name: WUndergroundSensor
Method Name: device_state_attributes
Project Name: pantsbuild/pants
Commit Name: 8a656213dceaceb0588fc61c8f9d5ffd633990bf
Time: 2015-04-17
Author: benjyw@gmail.com
File Name: src/python/pants/backend/jvm/tasks/jvm_tool_task_mixin.py
Class Name: JvmToolTaskMixin
Method Name: tool_classpath
Project Name: pantsbuild/pants
Commit Name: f2c6d6e6a15a574ddff55b8eaa291ed86f867859
Time: 2014-01-08
Author: benjy@foursquare.com
File Name: src/python/twitter/pants/tasks/jvm_tool_bootstrapper.py
Class Name: JvmToolBootstrapper
Method Name: get_jvm_tool_classpath