mirror of
https://github.com/home-assistant/core.git
synced 2025-11-17 06:50:12 +00:00
Do not call update() in constructor (#7912)
* Do not call update() in constructor * Do not call update() in constructor * Remove unused import
This commit is contained in:
@@ -32,7 +32,6 @@ def async_setup_platform(hass, config, async_add_devices, discovery_info=None):
|
||||
name = config.get(CONF_NAME)
|
||||
|
||||
async_add_devices([MoonSensor(name)], True)
|
||||
return True
|
||||
|
||||
|
||||
class MoonSensor(Entity):
|
||||
|
||||
Reference in New Issue
Block a user