Fix change

pull/18886/head
Fabian Affolter 2018-12-01 22:08:15 +01:00
parent fc1a4543d3
commit 7b6893c9d3
No known key found for this signature in database
GPG Key ID: E23CD2DD36A4397F
1 changed files with 1 additions and 1 deletions

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