Use PEP 526 type annotations, add some type hints (#26464)
* Add some more type hints to helpers.event * Change most type comments to variable types * Remove some superfluous type hints
This commit is contained in:
parent
5b3004c7b0
commit
33e1b44b3a
35 changed files with 152 additions and 174 deletions
|
@ -48,10 +48,10 @@ class LightSwitch(Light):
|
|||
|
||||
def __init__(self, name: str, switch_entity_id: str) -> None:
|
||||
"""Initialize Light Switch."""
|
||||
self._name = name # type: str
|
||||
self._switch_entity_id = switch_entity_id # type: str
|
||||
self._is_on = False # type: bool
|
||||
self._available = False # type: bool
|
||||
self._name = name
|
||||
self._switch_entity_id = switch_entity_id
|
||||
self._is_on = False
|
||||
self._available = False
|
||||
self._async_unsub_state_changed = None
|
||||
|
||||
@property
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue