From 3d7a22aa9f06dc0fbeda42986b7708eb35c76663 Mon Sep 17 00:00:00 2001 From: bwduncan Date: Tue, 16 Nov 2021 19:34:20 +0000 Subject: [PATCH] Fix typos in code example (#1138) --- docs/core/entity.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/core/entity.md b/docs/core/entity.md index 4145027b..b328822d 100644 --- a/docs/core/entity.md +++ b/docs/core/entity.md @@ -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 ... ```