Do not call update() in constructor (#8859)
This commit is contained in:
1 parent
ac9c1235bb
commit
d8ca04a4bc
19 files changed
+43
-57
No files matched your search
@@ -49,7 +49,7 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||
for variable in monitored_variables:
|
||||
dev.append(OpenEVSESensor(variable, charger))
|
||||
|
||||
add_devices(dev)
|
||||
add_devices(dev, True)
|
||||
|
||||
|
||||
class OpenEVSESensor(Entity):
|
||||
|
||||
Reference in new issue
Block a user