42dc973ccc34b0610838fbb43720a6d897b27043,homeassistant/components/sensor/vera.py,VeraSensor,update,#VeraSensor#,159
Before Change
def update(self):
if self.vera_device.category == "Temperature Sensor":
self.vera_device.refresh_value("CurrentTemperature")
self.current_value = self.vera_device.get_value("CurrentTemperature") + "°" + self.vera_device.veraController.temperature_units
elif self.vera_device.category == "Light Sensor":
self.vera_device.refresh_value("CurrentLevel")
self.current_value = self.vera_device.get_value("CurrentLevel")
elif self.vera_device.category == "Sensor":
After Change
def update(self):
if self.vera_device.category == "Temperature Sensor":
self.vera_device.refresh_value("CurrentTemperature")
current_temp = self.vera_device.get_value("CurrentTemperature")
vera_temp_units = self.vera_device.veraController.temperature_units
self.current_value = current_temp + "°" + vera_temp_units
elif self.vera_device.category == "Light Sensor":
self.vera_device.refresh_value("CurrentLevel")
self.current_value = self.vera_device.get_value("CurrentLevel")
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: home-assistant/home-assistant
Commit Name: 42dc973ccc34b0610838fbb43720a6d897b27043
Time: 2015-03-08
Author: jamespcole@gmail.com
File Name: homeassistant/components/sensor/vera.py
Class Name: VeraSensor
Method Name: update
Project Name: automl/auto-sklearn
Commit Name: 4601c9ea71a86112c5b08eea2449292a8d449d67
Time: 2020-04-13
Author: guilherme.miotto@gmail.com
File Name: autosklearn/metalearning/metafeatures/metafeatures.py
Class Name: PercentageOfInstancesWithMissingValues
Method Name: _calculate
Project Name: automl/auto-sklearn
Commit Name: 4601c9ea71a86112c5b08eea2449292a8d449d67
Time: 2020-04-13
Author: guilherme.miotto@gmail.com
File Name: autosklearn/metalearning/metafeatures/metafeatures.py
Class Name: PercentageOfFeaturesWithMissingValues
Method Name: _calculate