Fix typos in code example (#1138)

This commit is contained in:
bwduncan 2021-11-16 19:34:20 +00:00 committed by GitHub
parent ded730155b
commit 3d7a22aa9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
... ...
``` ```