241a7689832c504f18d9ea3bbb71e4f58f4d8fe5,homeassistant/components/sensor/zigbee.py,ZigBeeTemperatureSensor,__init__,#ZigBeeTemperatureSensor#Any#Any#,41

Before Change


    Allows usage of an XBee Pro as a temperature sensor.
    
    def __init__(self, hass, config):
        self._config = config
        self._temp = None
        if config.should_poll:
            hass.pool.add_job(JobPriority.EVENT_STATE, (self.update, None))

    @property
    def name(self):
        return self._config.name

After Change


        self._config = config
        self._temp = None
        // Get initial state
        hass.pool.add_job(
            JobPriority.EVENT_STATE, (self.update_ha_state, True))

    @property
    def name(self):
        return self._config.name
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: home-assistant/home-assistant
Commit Name: 241a7689832c504f18d9ea3bbb71e4f58f4d8fe5
Time: 2016-01-29
Author: flyte@failcode.co.uk
File Name: homeassistant/components/sensor/zigbee.py
Class Name: ZigBeeTemperatureSensor
Method Name: __init__


Project Name: home-assistant/home-assistant
Commit Name: 241a7689832c504f18d9ea3bbb71e4f58f4d8fe5
Time: 2016-01-29
Author: flyte@failcode.co.uk
File Name: homeassistant/components/zigbee.py
Class Name: ZigBeeDigitalIn
Method Name: __init__


Project Name: home-assistant/home-assistant
Commit Name: 241a7689832c504f18d9ea3bbb71e4f58f4d8fe5
Time: 2016-01-29
Author: flyte@failcode.co.uk
File Name: homeassistant/components/zigbee.py
Class Name: ZigBeeAnalogIn
Method Name: __init__