diff --git a/homeassistant/components/alarm_control_panel/ifttt.py b/homeassistant/components/alarm_control_panel/ifttt.py index 5303c24876e..7bdc1ccd9d9 100644 --- a/homeassistant/components/alarm_control_panel/ifttt.py +++ b/homeassistant/components/alarm_control_panel/ifttt.py @@ -93,7 +93,7 @@ def setup_platform(hass, config, add_devices, discovery_info=None): class IFTTTAlarmPanel(alarm.AlarmControlPanel): - """Representation of an alarm control panel controlled throught IFTTT.""" + """Representation of an alarm control panel controlled through IFTTT.""" def __init__(self, name, code, event_away, event_home, event_night, event_disarm, optimistic): diff --git a/homeassistant/components/climate/nest.py b/homeassistant/components/climate/nest.py index e5c21158acb..d11f6890a7b 100644 --- a/homeassistant/components/climate/nest.py +++ b/homeassistant/components/climate/nest.py @@ -179,7 +179,7 @@ class NestThermostat(ClimateDevice): try: self.device.target = temp except nest.nest.APIError: - _LOGGER.error("An error occured while setting the temperature") + _LOGGER.error("An error occurred while setting the temperature") def set_operation_mode(self, operation_mode): """Set operation mode.""" diff --git a/homeassistant/components/device_tracker/ubus.py b/homeassistant/components/device_tracker/ubus.py index c75529655f4..dd12df7b070 100644 --- a/homeassistant/components/device_tracker/ubus.py +++ b/homeassistant/components/device_tracker/ubus.py @@ -95,7 +95,7 @@ class UbusDeviceScanner(DeviceScanner): return self.last_results def _generate_mac2name(self): - """Return empty MAC to name dict. Overriden if DHCP server is set.""" + """Return empty MAC to name dict. Overridden if DHCP server is set.""" self.mac2name = dict() @_refresh_on_access_denied diff --git a/homeassistant/components/remote/xiaomi_miio.py b/homeassistant/components/remote/xiaomi_miio.py index b71eb2cb447..e731d421e69 100644 --- a/homeassistant/components/remote/xiaomi_miio.py +++ b/homeassistant/components/remote/xiaomi_miio.py @@ -138,7 +138,7 @@ def async_setup_platform(hass, config, async_add_devices, discovery_info=None): while (utcnow() - start_time) < timedelta(seconds=timeout): message = yield from hass.async_add_job( device.read, slot) - _LOGGER.debug("Message recieved from device: '%s'", message) + _LOGGER.debug("Message received from device: '%s'", message) if 'code' in message and message['code']: log_msg = "Received command is: {}".format(message['code']) diff --git a/homeassistant/components/smappee.py b/homeassistant/components/smappee.py index 0111e0437fb..1241679770b 100644 --- a/homeassistant/components/smappee.py +++ b/homeassistant/components/smappee.py @@ -264,7 +264,7 @@ class Smappee(object): return True def active_power(self): - """Get sum of all instantanious active power values from local hub.""" + """Get sum of all instantaneous active power values from local hub.""" if not self.is_local_active: return diff --git a/tests/components/homekit/test_accessories.py b/tests/components/homekit/test_accessories.py index 4d230b81686..6599ec83335 100644 --- a/tests/components/homekit/test_accessories.py +++ b/tests/components/homekit/test_accessories.py @@ -153,13 +153,13 @@ class TestAccessories(unittest.TestCase): def test_home_driver(self): """Test HomeDriver class.""" bridge = HomeBridge(None) - ip_adress = '127.0.0.1' + ip_address = '127.0.0.1' port = 51826 path = '.homekit.state' with patch('pyhap.accessory_driver.AccessoryDriver.__init__') \ as mock_driver: - HomeDriver(bridge, ip_adress, port, path) + HomeDriver(bridge, ip_address, port, path) self.assertEqual( - mock_driver.call_args, call(bridge, ip_adress, port, path)) + mock_driver.call_args, call(bridge, ip_address, port, path))