mirror of
https://github.com/home-assistant/developers.home-assistant.git
synced 2025-11-14 21:40:22 +00:00
Fix syntax error in DataUpdateCoordinator example (#657)
Update MyEntity example to invoke super(). Found this as I was implementing an entity following this example.
This commit is contained in:
@@ -97,7 +97,7 @@ class MyEntity(CoordinatorEntity, LightEntity):
|
||||
|
||||
def __init__(self, coordinator, idx):
|
||||
"""Pass coordinator to CoordinatorEntity."""
|
||||
super.__init__(coordinator)
|
||||
super().__init__(coordinator)
|
||||
self.idx = idx
|
||||
|
||||
@property
|
||||
|
||||
Reference in New Issue
Block a user