68d92c31966dd344a16e9f50dbb28f8ba189bf99,homeassistant/components/switch/vera.py,VeraSwitch,device_state_attributes,#VeraSwitch#,38

Before Change


            last_tripped = self.vera_device.last_trip
            if last_tripped is not None:
                utc_time = dt_util.utc_from_timestamp(int(last_tripped))
                attr[ATTR_LAST_TRIP_TIME] = dt_util.datetime_to_str(
                    utc_time)
            else:
                attr[ATTR_LAST_TRIP_TIME] = None
            tripped = self.vera_device.is_tripped
            attr[ATTR_TRIPPED] = "True" if tripped else "False"

After Change


            last_tripped = self.vera_device.last_trip
            if last_tripped is not None:
                utc_time = dt_util.utc_from_timestamp(int(last_tripped))
                attr[ATTR_LAST_TRIP_TIME] = utc_time.isoformat()
            else:
                attr[ATTR_LAST_TRIP_TIME] = None
            tripped = self.vera_device.is_tripped
            attr[ATTR_TRIPPED] = "True" if tripped else "False"
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 5

Instances


Project Name: home-assistant/home-assistant
Commit Name: 68d92c31966dd344a16e9f50dbb28f8ba189bf99
Time: 2016-04-16
Author: paulus@paulusschoutsen.nl
File Name: homeassistant/components/switch/vera.py
Class Name: VeraSwitch
Method Name: device_state_attributes


Project Name: home-assistant/home-assistant
Commit Name: 68d92c31966dd344a16e9f50dbb28f8ba189bf99
Time: 2016-04-16
Author: paulus@paulusschoutsen.nl
File Name: homeassistant/components/binary_sensor/vera.py
Class Name: VeraBinarySensor
Method Name: device_state_attributes


Project Name: home-assistant/home-assistant
Commit Name: 68d92c31966dd344a16e9f50dbb28f8ba189bf99
Time: 2016-04-16
Author: paulus@paulusschoutsen.nl
File Name: homeassistant/components/light/vera.py
Class Name: VeraLight
Method Name: device_state_attributes


Project Name: home-assistant/home-assistant
Commit Name: 68d92c31966dd344a16e9f50dbb28f8ba189bf99
Time: 2016-04-16
Author: paulus@paulusschoutsen.nl
File Name: homeassistant/components/sensor/vera.py
Class Name: VeraSensor
Method Name: device_state_attributes