Do not call update() in constructor (#8859)
This commit is contained in:
parent
ac9c1235bb
commit
d8ca04a4bc
19 changed files with 43 additions and 57 deletions
|
@ -24,7 +24,7 @@ SENSOR_TYPES = {}
|
|||
|
||||
|
||||
def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||
"""Setup the ComfoConnect fan platform."""
|
||||
"""Set up the ComfoConnect fan platform."""
|
||||
from pycomfoconnect import (
|
||||
SENSOR_TEMPERATURE_EXTRACT, SENSOR_HUMIDITY_EXTRACT,
|
||||
SENSOR_TEMPERATURE_OUTDOOR, SENSOR_HUMIDITY_OUTDOOR,
|
||||
|
@ -92,8 +92,6 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
|
|||
|
||||
add_devices(sensors, True)
|
||||
|
||||
return
|
||||
|
||||
|
||||
class ComfoConnectSensor(Entity):
|
||||
"""Representation of a ComfoConnect sensor."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue