From 44383f25ce45a9e059b963b970b8eadc5db225f5 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Wed, 5 May 2021 08:56:50 +0200 Subject: [PATCH] Clean up pylint comments (#49334) --- homeassistant/components/notify/__init__.py | 1 - homeassistant/data_entry_flow.py | 4 +++- homeassistant/helpers/entity.py | 1 - 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/notify/__init__.py b/homeassistant/components/notify/__init__.py index 118579fb0c0..41953ddfc75 100644 --- a/homeassistant/components/notify/__init__.py +++ b/homeassistant/components/notify/__init__.py @@ -116,7 +116,6 @@ class BaseNotificationService: # While not purely typed, it makes typehinting more useful for us # and removes the need for constant None checks or asserts. - # Ignore types: https://github.com/PyCQA/pylint/issues/3167 hass: HomeAssistant = None # type: ignore # Name => target diff --git a/homeassistant/data_entry_flow.py b/homeassistant/data_entry_flow.py index f442e4662c6..720711e07e3 100644 --- a/homeassistant/data_entry_flow.py +++ b/homeassistant/data_entry_flow.py @@ -307,7 +307,9 @@ class FlowHandler: # Set by flow manager cur_step: dict[str, str] | None = None - # Ignore types: https://github.com/PyCQA/pylint/issues/3167 + + # While not purely typed, it makes typehinting more useful for us + # and removes the need for constant None checks or asserts. flow_id: str = None # type: ignore hass: HomeAssistant = None # type: ignore handler: str = None # type: ignore diff --git a/homeassistant/helpers/entity.py b/homeassistant/helpers/entity.py index dd6d1836857..d9b3b28a9ef 100644 --- a/homeassistant/helpers/entity.py +++ b/homeassistant/helpers/entity.py @@ -138,7 +138,6 @@ class Entity(ABC): # Owning hass instance. Will be set by EntityPlatform # While not purely typed, it makes typehinting more useful for us # and removes the need for constant None checks or asserts. - # Ignore types: https://github.com/PyCQA/pylint/issues/3167 hass: HomeAssistant = None # type: ignore # Owning platform instance. Will be set by EntityPlatform