Fix a bunch of typos (#9545)
s/Addres /Address / s/Chnage/Change/ s/Converion/Conversion/ s/Supressing/Suppressing/ s/agains /against / s/allready/already/ s/analagous/analogous/ s/aquired/acquired/ s/arbitray/arbitrary/ s/argment/argument/ s/aroung/around/ s/attibute/attribute/ s/auxillary/auxiliary/ s/befor /before / s/commmand/command/ s/conatin/contain/ s/conection/connection/ s/coresponding/corresponding/ s/entites/entities/ s/enviroment/environment/ s/everyhing/everything/ s/expected expected/expected/ s/explicity/explicitly/ s/formated/formatted/ s/incomming/incoming/ s/informations/information/ s/inital/initial/ s/inteface/interface/ s/interupt/interrupt/ s/mimick/mimic/ s/mulitple/multiple/ s/multible/multiple/ s/occured/occurred/ s/occuring/occurring/ s/overrided/overridden/ s/overriden/overridden/ s/platfrom/platform/ s/positon/position/ s/progess/progress/ s/recieved/received/ s/reciever/receiver/ s/recieving/receiving/ s/reponse/response/ s/representaion/representation/ s/resgister/register/ s/retrive/retrieve/ s/reuqests/requests/ s/segements/segments/ s/seperated/separated/ s/sheduled/scheduled/ s/succesfully/successfully/ s/suppport/support/ s/targetting/targeting/ s/thats/that's/ s/the the/the/ s/unkown/unknown/ s/verison/version/ s/while loggin out/while logging out/
This commit is contained in:
1 parent
3704a18da5
commit
08b0629eca
82 files changed
+134
-133
No files matched your search
@@ -64,7 +64,7 @@ class TestAuroraSensorSetUp(unittest.TestCase):
|
||||
|
||||
@requests_mock.Mocker()
|
||||
def test_custom_threshold_works(self, mock_req):
|
||||
"""Test that the the config can take a custom forecast threshold."""
|
||||
"""Test that the config can take a custom forecast threshold."""
|
||||
uri = re.compile(
|
||||
"http://services\.swpc\.noaa\.gov/text/aurora-nowcast-map\.txt"
|
||||
)
|
||||
|
||||
@@ -27,7 +27,7 @@ class TestSetupCamera(object):
|
||||
self.hass.stop()
|
||||
|
||||
def test_setup_component(self):
|
||||
"""Setup demo platfrom on camera component."""
|
||||
"""Setup demo platform on camera component."""
|
||||
config = {
|
||||
camera.DOMAIN: {
|
||||
'platform': 'demo'
|
||||
|
||||
@@ -230,7 +230,7 @@ class TestDemoClimate(unittest.TestCase):
|
||||
self.assertEqual(None, state.attributes.get('hold_mode'))
|
||||
|
||||
def test_set_aux_heat_bad_attr(self):
|
||||
"""Test setting the auxillary heater without required attribute."""
|
||||
"""Test setting the auxiliary heater without required attribute."""
|
||||
state = self.hass.states.get(ENTITY_CLIMATE)
|
||||
self.assertEqual('off', state.attributes.get('aux_heat'))
|
||||
climate.set_aux_heat(self.hass, None, ENTITY_CLIMATE)
|
||||
@@ -245,7 +245,7 @@ class TestDemoClimate(unittest.TestCase):
|
||||
self.assertEqual('on', state.attributes.get('aux_heat'))
|
||||
|
||||
def test_set_aux_heat_off(self):
|
||||
"""Test setting the auxillary heater off/false."""
|
||||
"""Test setting the auxiliary heater off/false."""
|
||||
climate.set_aux_heat(self.hass, False, ENTITY_CLIMATE)
|
||||
self.hass.block_till_done()
|
||||
state = self.hass.states.get(ENTITY_CLIMATE)
|
||||
|
||||
@@ -142,7 +142,7 @@ def test_logout_view_request_timeout(mock_auth, cloud_client):
|
||||
|
||||
@asyncio.coroutine
|
||||
def test_logout_view_unknown_error(mock_auth, cloud_client):
|
||||
"""Test unknown error while loggin out."""
|
||||
"""Test unknown error while logging out."""
|
||||
mock_auth.logout.side_effect = auth_api.UnknownError
|
||||
req = yield from cloud_client.post('/api/cloud/logout')
|
||||
assert req.status == 502
|
||||
@@ -186,7 +186,7 @@ def test_register_view_request_timeout(mock_cognito, cloud_client):
|
||||
|
||||
@asyncio.coroutine
|
||||
def test_register_view_unknown_error(mock_cognito, cloud_client):
|
||||
"""Test unknown error while loggin out."""
|
||||
"""Test unknown error while logging out."""
|
||||
mock_cognito.register.side_effect = auth_api.UnknownError
|
||||
req = yield from cloud_client.post('/api/cloud/register', json={
|
||||
'email': 'hello@bla.com',
|
||||
@@ -233,7 +233,7 @@ def test_confirm_register_view_request_timeout(mock_cognito, cloud_client):
|
||||
|
||||
@asyncio.coroutine
|
||||
def test_confirm_register_view_unknown_error(mock_cognito, cloud_client):
|
||||
"""Test unknown error while loggin out."""
|
||||
"""Test unknown error while logging out."""
|
||||
mock_cognito.confirm_sign_up.side_effect = auth_api.UnknownError
|
||||
req = yield from cloud_client.post('/api/cloud/confirm_register', json={
|
||||
'email': 'hello@bla.com',
|
||||
@@ -274,7 +274,7 @@ def test_forgot_password_view_request_timeout(mock_cognito, cloud_client):
|
||||
|
||||
@asyncio.coroutine
|
||||
def test_forgot_password_view_unknown_error(mock_cognito, cloud_client):
|
||||
"""Test unknown error while loggin out."""
|
||||
"""Test unknown error while logging out."""
|
||||
mock_cognito.initiate_forgot_password.side_effect = auth_api.UnknownError
|
||||
req = yield from cloud_client.post('/api/cloud/forgot_password', json={
|
||||
'email': 'hello@bla.com',
|
||||
@@ -329,7 +329,7 @@ def test_confirm_forgot_password_view_request_timeout(mock_cognito,
|
||||
@asyncio.coroutine
|
||||
def test_confirm_forgot_password_view_unknown_error(mock_cognito,
|
||||
cloud_client):
|
||||
"""Test unknown error while loggin out."""
|
||||
"""Test unknown error while logging out."""
|
||||
mock_cognito.confirm_forgot_password.side_effect = auth_api.UnknownError
|
||||
req = yield from cloud_client.post(
|
||||
'/api/cloud/confirm_forgot_password', json={
|
||||
|
||||
@@ -125,4 +125,4 @@ def test_warning_config_google_home_listen_port():
|
||||
|
||||
assert mock_warn.called
|
||||
assert mock_warn.mock_calls[0][1][0] == \
|
||||
"When targetting Google Home, listening port has to be port 80"
|
||||
"When targeting Google Home, listening port has to be port 80"
|
||||
@@ -24,7 +24,7 @@ class TestSetupImageProcessing(object):
|
||||
self.hass.stop()
|
||||
|
||||
def test_setup_component(self):
|
||||
"""Setup demo platfrom on image_process component."""
|
||||
"""Setup demo platform on image_process component."""
|
||||
config = {
|
||||
ip.DOMAIN: {
|
||||
'platform': 'demo'
|
||||
@@ -35,7 +35,7 @@ class TestSetupImageProcessing(object):
|
||||
setup_component(self.hass, ip.DOMAIN, config)
|
||||
|
||||
def test_setup_component_with_service(self):
|
||||
"""Setup demo platfrom on image_process component test service."""
|
||||
"""Setup demo platform on image_process component test service."""
|
||||
config = {
|
||||
ip.DOMAIN: {
|
||||
'platform': 'demo'
|
||||
|
||||
@@ -32,7 +32,7 @@ class TestMochadSwitchSetup(unittest.TestCase):
|
||||
self.hass = get_test_home_assistant()
|
||||
|
||||
def tearDown(self):
|
||||
"""Stop everyhing that was started."""
|
||||
"""Stop everything that was started."""
|
||||
self.hass.stop()
|
||||
|
||||
@mock.patch('homeassistant.components.light.mochad.MochadLight')
|
||||
|
||||
@@ -29,7 +29,7 @@ class FakeYamaha(rxv.rxv.RXV):
|
||||
|
||||
@property
|
||||
def input(self):
|
||||
"""A fake input for the reciever."""
|
||||
"""A fake input for the receiver."""
|
||||
return self._fake_input
|
||||
|
||||
@input.setter
|
||||
@@ -39,7 +39,7 @@ class FakeYamaha(rxv.rxv.RXV):
|
||||
self._fake_input = input_name
|
||||
|
||||
def inputs(self):
|
||||
"""All inputs of the the fake receiver."""
|
||||
"""All inputs of the fake receiver."""
|
||||
return {'AUDIO1': None,
|
||||
'AUDIO2': None,
|
||||
'AV1': None,
|
||||
|
||||
@@ -61,7 +61,7 @@ class TestMfiSensorSetup(unittest.TestCase):
|
||||
|
||||
@mock.patch('mficlient.client.MFiClient')
|
||||
def test_setup_failed_connect(self, mock_client):
|
||||
"""Test setup with conection failure."""
|
||||
"""Test setup with connection failure."""
|
||||
mock_client.side_effect = requests.exceptions.ConnectionError
|
||||
self.assertFalse(
|
||||
self.PLATFORM.setup_platform(
|
||||
|
||||
@@ -32,7 +32,7 @@ class TestMochadSwitchSetup(unittest.TestCase):
|
||||
self.hass = get_test_home_assistant()
|
||||
|
||||
def tearDown(self):
|
||||
"""Stop everyhing that was started."""
|
||||
"""Stop everything that was started."""
|
||||
self.hass.stop()
|
||||
|
||||
@mock.patch('homeassistant.components.switch.mochad.MochadSwitch')
|
||||
|
||||
@@ -81,7 +81,7 @@ def test_default_setup(hass, monkeypatch):
|
||||
assert hass.states.get('switch.test').state == 'on'
|
||||
|
||||
# The switch component does not support adding new devices for incoming
|
||||
# events because every new unkown device is added as a light by default.
|
||||
# events because every new unknown device is added as a light by default.
|
||||
|
||||
# test changing state from HA propagates to Rflink
|
||||
hass.async_add_job(
|
||||
|
||||
@@ -578,7 +578,7 @@ class TestInfluxDB(unittest.TestCase):
|
||||
mock_client.return_value.write_points.reset_mock()
|
||||
|
||||
def test_event_listener_component_override_measurement(self, mock_client):
|
||||
"""Test the event listener with overrided measurements."""
|
||||
"""Test the event listener with overridden measurements."""
|
||||
config = {
|
||||
'influxdb': {
|
||||
'host': 'host',
|
||||
|
||||
@@ -82,7 +82,7 @@ class TestComponentsCore(unittest.TestCase):
|
||||
|
||||
# We can't test if our service call results in services being called
|
||||
# because by mocking out the call service method, we mock out all
|
||||
# So we mimick how the service registry calls services
|
||||
# So we mimic how the service registry calls services
|
||||
service_call = ha.ServiceCall('homeassistant', 'turn_on', {
|
||||
'entity_id': ['light.test', 'sensor.bla', 'light.bla']
|
||||
})
|
||||
|
||||
@@ -415,7 +415,7 @@ class TestComponentLogbook(unittest.TestCase):
|
||||
def test_home_assistant_start_stop_grouped(self):
|
||||
"""Test if HA start and stop events are grouped.
|
||||
|
||||
Events that are occuring in the same minute.
|
||||
Events that are occurring in the same minute.
|
||||
"""
|
||||
entries = list(logbook.humanify((
|
||||
ha.Event(EVENT_HOMEASSISTANT_STOP),
|
||||
|
||||
Reference in new issue
Block a user