Fix change

This commit is contained in:
Fabian Affolter committed 2018-12-01 22:08:15 +01:00
1 parent fc1a4543d3
commit 7b6893c9d3
1 file changed
+1 -1
+1 -1
View File
@@ -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