Skip to content

Commit

Permalink
Fix adding sensor entities
Browse files Browse the repository at this point in the history
  • Loading branch information
johnluetke committed Nov 17, 2019
1 parent e5ec55b commit 74bdee2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion homeassistant/components/pi_hole/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ async def async_setup_platform(hass, config, async_add_entities, discovery_info=

sensors = []
for pi_hole in hass.data[PIHOLE_DOMAIN].values():
sensors = [PiHoleSensor(pi_hole, sensor_name) for sensor_name in SENSOR_LIST]
for sensor in [
PiHoleSensor(pi_hole, sensor_name) for sensor_name in SENSOR_LIST
]:
sensors.append(sensor)

async_add_entities(sensors, True)

Expand Down

0 comments on commit 74bdee2

Please sign in to comment.