2589e78e84a1114ce2d56e2d24013077f9c33292,homeassistant/components/zwave.py,ZWaveDeviceEntity,_object_id,#ZWaveDeviceEntity#,243

Before Change


        The object_id contains node_id and value instance id
        to not collide with other entity_ids

        object_id = "{}_{}".format(slugify(self.name),
                                   self._value.node.node_id)

        // Add the instance id if there is more than one instance for the value
        if self._value.instance > 1:
            return "{}_{}".format(object_id, self._value.instance)

After Change


        The object_id contains node_id and value instance id
        to not collide with other entity_ids

        return _object_id(self._value)

    @property
    def state_attributes(self):
         Returns the state attributes. 
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: home-assistant/home-assistant
Commit Name: 2589e78e84a1114ce2d56e2d24013077f9c33292
Time: 2016-02-04
Author: lukas@hetzenecker.me
File Name: homeassistant/components/zwave.py
Class Name: ZWaveDeviceEntity
Method Name: _object_id


Project Name: home-assistant/home-assistant
Commit Name: 1a635fede3b5ae6c6de3bb01328f7ac0e1b94d02
Time: 2017-04-19
Author: paulus@paulusschoutsen.nl
File Name: homeassistant/components/light/tradfri.py
Class Name: Tradfri
Method Name: supported_features


Project Name: home-assistant/home-assistant
Commit Name: f643149d2464454952275ae034537f86337c2cf5
Time: 2017-01-08
Author: happyleaves.tfr@gmail.com
File Name: homeassistant/components/sensor/usps.py
Class Name: USPSSensor
Method Name: device_state_attributes