mirror of
https://github.com/home-assistant/developers.home-assistant.git
synced 2025-07-13 20:36: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
|
```python
|
||||||
class MySwitch(SwitchEntity):
|
class MySwitch(SwitchEntity):
|
||||||
|
|
||||||
def __init(self, icon: str) -> None:
|
def __init__(self, icon: str) -> None:
|
||||||
_attr_icon = icon
|
self._attr_icon = icon
|
||||||
|
|
||||||
...
|
...
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user