mirror of
https://github.com/home-assistant/developers.home-assistant.git
synced 2025-07-19 15:26:29 +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:
parent
fef5353496
commit
fd004fb56b
@ -97,7 +97,7 @@ class MyEntity(CoordinatorEntity, LightEntity):
|
|||||||
|
|
||||||
def __init__(self, coordinator, idx):
|
def __init__(self, coordinator, idx):
|
||||||
"""Pass coordinator to CoordinatorEntity."""
|
"""Pass coordinator to CoordinatorEntity."""
|
||||||
super.__init__(coordinator)
|
super().__init__(coordinator)
|
||||||
self.idx = idx
|
self.idx = idx
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
Loading…
x
Reference in New Issue
Block a user