Fix change
parent
fc1a4543d3
commit
7b6893c9d3
|
@ -87,7 +87,7 @@ class Sense(Entity):
|
||||||
def __init__(self, data, name, sensor_type, is_production, update_call):
|
def __init__(self, data, name, sensor_type, is_production, update_call):
|
||||||
"""Initialize the Sense sensor."""
|
"""Initialize the Sense sensor."""
|
||||||
name_type = PRODUCTION_NAME if is_production else CONSUMPTION_NAME
|
name_type = PRODUCTION_NAME if is_production else CONSUMPTION_NAME
|
||||||
self._name = "%s %s".format(name, name_type)
|
self._name = "{} {}".format(name, name_type)
|
||||||
self._data = data
|
self._data = data
|
||||||
self._sensor_type = sensor_type
|
self._sensor_type = sensor_type
|
||||||
self.update_sensor = update_call
|
self.update_sensor = update_call
|
||||||
|
|
Loading…
Reference in New Issue