Spelling fixes (#12041)
* Spelling fixes *Lots* of them. * Spelling breaking changes * Fix lint errors
This commit is contained in:
1 parent
38fd9b65bf
commit
8dcfd35b8b
138 files changed
+285
-286
No files matched your search
@@ -87,7 +87,7 @@ def async_setup_platform(hass, config, async_add_devices, discovery_info=None):
|
||||
async_add_devices(devices)
|
||||
|
||||
def update_entities_telegram(telegram):
|
||||
"""Update entities with latests telegram and trigger state update."""
|
||||
"""Update entities with latest telegram and trigger state update."""
|
||||
# Make all device entities aware of new telegram
|
||||
for device in devices:
|
||||
device.telegram = telegram
|
||||
@@ -122,7 +122,7 @@ def async_setup_platform(hass, config, async_add_devices, discovery_info=None):
|
||||
|
||||
if transport:
|
||||
# Register listener to close transport on HA shutdown
|
||||
stop_listerer = hass.bus.async_listen_once(
|
||||
stop_listener = hass.bus.async_listen_once(
|
||||
EVENT_HOMEASSISTANT_STOP, transport.close)
|
||||
|
||||
# Wait for reader to close
|
||||
@@ -131,8 +131,8 @@ def async_setup_platform(hass, config, async_add_devices, discovery_info=None):
|
||||
if hass.state != CoreState.stopping:
|
||||
# Unexpected disconnect
|
||||
if transport:
|
||||
# remove listerer
|
||||
stop_listerer()
|
||||
# remove listener
|
||||
stop_listener()
|
||||
|
||||
# Reflect disconnect state in devices state by setting an
|
||||
# empty telegram resulting in `unknown` states
|
||||
|
||||
Reference in new issue
Block a user