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
@@ -263,7 +263,7 @@ async def test_extract_from_service_no_group_expand(hass):
|
||||
async def test_setup_dependencies_platform(hass):
|
||||
"""Test we setup the dependencies of a platform.
|
||||
|
||||
We're explictely testing that we process dependencies even if a component
|
||||
We're explicitly testing that we process dependencies even if a component
|
||||
with the same name has already been loaded.
|
||||
"""
|
||||
mock_integration(
|
||||
@@ -305,7 +305,7 @@ async def test_setup_entry(hass):
|
||||
|
||||
|
||||
async def test_setup_entry_platform_not_exist(hass):
|
||||
"""Test setup entry fails if platform doesnt exist."""
|
||||
"""Test setup entry fails if platform does not exist."""
|
||||
component = EntityComponent(_LOGGER, DOMAIN, hass)
|
||||
entry = MockConfigEntry(domain="non_existing")
|
||||
|
||||
|
||||
@@ -394,7 +394,7 @@ async def test_using_prescribed_entity_id(hass):
|
||||
|
||||
|
||||
async def test_using_prescribed_entity_id_with_unique_id(hass):
|
||||
"""Test for ammending predefined entity ID because currently exists."""
|
||||
"""Test for amending predefined entity ID because currently exists."""
|
||||
component = EntityComponent(_LOGGER, DOMAIN, hass)
|
||||
|
||||
await component.async_add_entities([MockEntity(entity_id="test_domain.world")])
|
||||
@@ -839,7 +839,7 @@ async def test_override_restored_entities(hass):
|
||||
|
||||
|
||||
async def test_platform_with_no_setup(hass, caplog):
|
||||
"""Test setting up a platform that doesnt' support setup."""
|
||||
"""Test setting up a platform that does not support setup."""
|
||||
entity_platform = MockEntityPlatform(
|
||||
hass, domain="mock-integration", platform_name="mock-platform", platform=None
|
||||
)
|
||||
|
||||
@@ -475,7 +475,7 @@ async def test_track_sunrise_update_location(hass):
|
||||
with patch("homeassistant.util.dt.utcnow", return_value=utc_now):
|
||||
async_track_sunrise(hass, lambda: runs.append(1))
|
||||
|
||||
# Mimick sunrise
|
||||
# Mimic sunrise
|
||||
_send_time_changed(hass, next_rising)
|
||||
await hass.async_block_till_done()
|
||||
assert len(runs) == 1
|
||||
@@ -485,7 +485,7 @@ async def test_track_sunrise_update_location(hass):
|
||||
await hass.config.async_update(latitude=40.755931, longitude=-73.984606)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
# Mimick sunrise
|
||||
# Mimic sunrise
|
||||
_send_time_changed(hass, next_rising)
|
||||
await hass.async_block_till_done()
|
||||
# Did not increase
|
||||
@@ -501,7 +501,7 @@ async def test_track_sunrise_update_location(hass):
|
||||
break
|
||||
mod += 1
|
||||
|
||||
# Mimick sunrise at new location
|
||||
# Mimic sunrise at new location
|
||||
_send_time_changed(hass, next_rising)
|
||||
await hass.async_block_till_done()
|
||||
assert len(runs) == 2
|
||||
|
||||
@@ -348,7 +348,7 @@ async def test_call_context_user_not_exist(hass):
|
||||
|
||||
|
||||
async def test_call_context_target_all(hass, mock_service_platform_call, mock_entities):
|
||||
"""Check we only target allowed entities if targetting all."""
|
||||
"""Check we only target allowed entities if targeting all."""
|
||||
with patch(
|
||||
"homeassistant.auth.AuthManager.async_get_user",
|
||||
return_value=mock_coro(
|
||||
@@ -473,7 +473,7 @@ async def test_call_no_context_target_specific(
|
||||
async def test_call_with_match_all(
|
||||
hass, mock_service_platform_call, mock_entities, caplog
|
||||
):
|
||||
"""Check we only target allowed entities if targetting all."""
|
||||
"""Check we only target allowed entities if targeting all."""
|
||||
await service.entity_service_call(
|
||||
hass,
|
||||
[Mock(entities=mock_entities)],
|
||||
|
||||
Reference in new issue
Block a user