mirror of
https://github.com/home-assistant/developers.home-assistant.git
synced 2025-07-13 04:16:29 +00:00
Fix typos in code example (#1138)
This commit is contained in:
parent
ded730155b
commit
3d7a22aa9f
@ -125,8 +125,8 @@ class MySwitch(SwitchEntity):
|
||||
```python
|
||||
class MySwitch(SwitchEntity):
|
||||
|
||||
def __init(self, icon: str) -> None:
|
||||
_attr_icon = icon
|
||||
def __init__(self, icon: str) -> None:
|
||||
self._attr_icon = icon
|
||||
|
||||
...
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user