mirror of
https://github.com/home-assistant/core.git
synced 2025-11-10 19:40:11 +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:
@@ -36,7 +36,6 @@ def async_setup_platform(hass, config, async_add_devices, discovery_info=None):
|
||||
time_zone = dt_util.get_time_zone(config.get(CONF_TIME_ZONE))
|
||||
|
||||
async_add_devices([WorldClockSensor(time_zone, name)], True)
|
||||
return True
|
||||
|
||||
|
||||
class WorldClockSensor(Entity):
|
||||
|
||||
Reference in New Issue
Block a user