Skip to content

Commit

Permalink
Fixed sensor names
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberjunky authored Jan 20, 2021
1 parent 016f17c commit 9a30160
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/toon_boilerstatus/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,13 @@ async def async_setup_platform(hass, config, async_add_entities, discovery_info=

session = async_get_clientsession(hass)
data = ToonBoilerStatusData(session, config.get(CONF_HOST), config.get(CONF_PORT))
name = config.get(CONF_NAME)
prefix = config.get(CONF_NAME)
await data.async_update()

entities = []
for resource in config[CONF_RESOURCES]:
sensor_type = resource.lower()
name = name + " " + SENSOR_TYPES[resource][0]
name = prefix + " " + SENSOR_TYPES[resource][0]
unit = SENSOR_TYPES[resource][1]
icon = SENSOR_TYPES[resource][2]

Expand Down

0 comments on commit 9a30160

Please sign in to comment.