Fix typos found by codespell (#31243)
* Fix typos found by codespell * Fix typos found by codespell * codespell: Furture ==> Future * Update test_config_flow.py * Update __init__.py * Spellcheck: successfull ==> successful * Codespell: unsuccesful ==> unsuccessful * Codespell: cant ==> can't * Codespell: firware ==> firmware * Codespell: mimick ==> mimic
This commit is contained in:
1 parent
a017c26234
commit
df7d2b3aeb
121 files changed
+170
-156
No files matched your search
@@ -63,7 +63,7 @@ class HomeKitEntity(Entity):
|
||||
return False
|
||||
|
||||
def setup(self):
|
||||
"""Configure an entity baed on its HomeKit characterstics metadata."""
|
||||
"""Configure an entity baed on its HomeKit characteristics metadata."""
|
||||
accessories = self._accessory.accessories
|
||||
|
||||
get_uuid = CharacteristicsTypes.get_uuid
|
||||
@@ -124,7 +124,7 @@ class HomeKitEntity(Entity):
|
||||
"""Collect new data from bridge and update the entity state in hass."""
|
||||
accessory_state = self._accessory.current_state.get(self._aid, {})
|
||||
for iid, result in accessory_state.items():
|
||||
# No value so dont process this result
|
||||
# No value so don't process this result
|
||||
if "value" not in result:
|
||||
continue
|
||||
|
||||
|
||||
@@ -77,7 +77,7 @@ class HKDevice:
|
||||
# The platorms we have forwarded the config entry so far. If a new
|
||||
# accessory is added to a bridge we may have to load additional
|
||||
# platforms. We don't want to load all platforms up front if its just
|
||||
# a lightbulb. And we dont want to forward a config entry twice
|
||||
# a lightbulb. And we don't want to forward a config entry twice
|
||||
# (triggers a Config entry already set up error)
|
||||
self.platforms = set()
|
||||
|
||||
@@ -331,7 +331,7 @@ class HKDevice:
|
||||
key = (row["aid"], row["iid"])
|
||||
|
||||
# If the key was returned by put_characteristics() then the
|
||||
# change didnt work
|
||||
# change didn't work
|
||||
if key in results:
|
||||
continue
|
||||
|
||||
|
||||
Reference in new issue
Block a user