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
@@ -232,8 +232,8 @@ def test_async_schedule_update_ha_state(hass):
|
||||
|
||||
|
||||
@asyncio.coroutine
|
||||
def test_async_pararell_updates_with_zero(hass):
|
||||
"""Test pararell updates with 0 (disabled)."""
|
||||
def test_async_parallel_updates_with_zero(hass):
|
||||
"""Test parallel updates with 0 (disabled)."""
|
||||
updates = []
|
||||
test_lock = asyncio.Event(loop=hass.loop)
|
||||
|
||||
@@ -269,11 +269,11 @@ def test_async_pararell_updates_with_zero(hass):
|
||||
|
||||
|
||||
@asyncio.coroutine
|
||||
def test_async_pararell_updates_with_one(hass):
|
||||
"""Test pararell updates with 1 (sequential)."""
|
||||
def test_async_parallel_updates_with_one(hass):
|
||||
"""Test parallel updates with 1 (sequential)."""
|
||||
updates = []
|
||||
test_lock = asyncio.Lock(loop=hass.loop)
|
||||
test_semephore = asyncio.Semaphore(1, loop=hass.loop)
|
||||
test_semaphore = asyncio.Semaphore(1, loop=hass.loop)
|
||||
|
||||
yield from test_lock.acquire()
|
||||
|
||||
@@ -284,7 +284,7 @@ def test_async_pararell_updates_with_one(hass):
|
||||
self.entity_id = entity_id
|
||||
self.hass = hass
|
||||
self._count = count
|
||||
self.parallel_updates = test_semephore
|
||||
self.parallel_updates = test_semaphore
|
||||
|
||||
@asyncio.coroutine
|
||||
def async_update(self):
|
||||
@@ -332,11 +332,11 @@ def test_async_pararell_updates_with_one(hass):
|
||||
|
||||
|
||||
@asyncio.coroutine
|
||||
def test_async_pararell_updates_with_two(hass):
|
||||
"""Test pararell updates with 2 (pararell)."""
|
||||
def test_async_parallel_updates_with_two(hass):
|
||||
"""Test parallel updates with 2 (parallel)."""
|
||||
updates = []
|
||||
test_lock = asyncio.Lock(loop=hass.loop)
|
||||
test_semephore = asyncio.Semaphore(2, loop=hass.loop)
|
||||
test_semaphore = asyncio.Semaphore(2, loop=hass.loop)
|
||||
|
||||
yield from test_lock.acquire()
|
||||
|
||||
@@ -347,7 +347,7 @@ def test_async_pararell_updates_with_two(hass):
|
||||
self.entity_id = entity_id
|
||||
self.hass = hass
|
||||
self._count = count
|
||||
self.parallel_updates = test_semephore
|
||||
self.parallel_updates = test_semaphore
|
||||
|
||||
@asyncio.coroutine
|
||||
def async_update(self):
|
||||
|
||||
@@ -184,7 +184,7 @@ class TestHelpersEntityComponent(unittest.TestCase):
|
||||
|
||||
assert 2 == len(self.hass.states.entity_ids())
|
||||
|
||||
def test_update_state_adds_entities_with_update_befor_add_true(self):
|
||||
def test_update_state_adds_entities_with_update_before_add_true(self):
|
||||
"""Test if call update before add to state machine."""
|
||||
component = EntityComponent(_LOGGER, DOMAIN, self.hass)
|
||||
|
||||
@@ -197,7 +197,7 @@ class TestHelpersEntityComponent(unittest.TestCase):
|
||||
assert 1 == len(self.hass.states.entity_ids())
|
||||
assert ent.update.called
|
||||
|
||||
def test_update_state_adds_entities_with_update_befor_add_false(self):
|
||||
def test_update_state_adds_entities_with_update_before_add_false(self):
|
||||
"""Test if not call update before add to state machine."""
|
||||
component = EntityComponent(_LOGGER, DOMAIN, self.hass)
|
||||
|
||||
@@ -579,7 +579,7 @@ def test_platform_not_ready(hass):
|
||||
|
||||
|
||||
@asyncio.coroutine
|
||||
def test_pararell_updates_async_platform(hass):
|
||||
def test_parallel_updates_async_platform(hass):
|
||||
"""Warn we log when platform setup takes a long time."""
|
||||
platform = MockPlatform()
|
||||
|
||||
@@ -606,7 +606,7 @@ def test_pararell_updates_async_platform(hass):
|
||||
|
||||
|
||||
@asyncio.coroutine
|
||||
def test_pararell_updates_async_platform_with_constant(hass):
|
||||
def test_parallel_updates_async_platform_with_constant(hass):
|
||||
"""Warn we log when platform setup takes a long time."""
|
||||
platform = MockPlatform()
|
||||
|
||||
@@ -634,7 +634,7 @@ def test_pararell_updates_async_platform_with_constant(hass):
|
||||
|
||||
|
||||
@asyncio.coroutine
|
||||
def test_pararell_updates_sync_platform(hass):
|
||||
def test_parallel_updates_sync_platform(hass):
|
||||
"""Warn we log when platform setup takes a long time."""
|
||||
platform = MockPlatform()
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
"""The tests for the EntityFitler component."""
|
||||
"""The tests for the EntityFilter component."""
|
||||
from homeassistant.helpers.entityfilter import generate_filter
|
||||
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@ class TestServiceHelpers(unittest.TestCase):
|
||||
self.hass.stop()
|
||||
|
||||
def test_template_service_call(self):
|
||||
"""Test service call with tempating."""
|
||||
"""Test service call with templating."""
|
||||
config = {
|
||||
'service_template': '{{ \'test_domain.test_service\' }}',
|
||||
'entity_id': 'hello.world',
|
||||
@@ -102,7 +102,7 @@ class TestServiceHelpers(unittest.TestCase):
|
||||
|
||||
@patch('homeassistant.helpers.service._LOGGER.error')
|
||||
def test_fail_silently_if_no_service(self, mock_log):
|
||||
"""Test failling if service is missing."""
|
||||
"""Test failing if service is missing."""
|
||||
service.call_from_config(self.hass, None)
|
||||
self.assertEqual(1, mock_log.call_count)
|
||||
|
||||
|
||||
Reference in new issue
Block a user