Fix change
parent
fc1a4543d3
commit
7b6893c9d3
|
@ -87,7 +87,7 @@ class Sense(Entity):
|
|||
def __init__(self, data, name, sensor_type, is_production, update_call):
|
||||
"""Initialize the Sense sensor."""
|
||||
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._sensor_type = sensor_type
|
||||
self.update_sensor = update_call
|
||||
|
|
Loading…
Reference in New Issue