Spelling fixes (#13681)
This commit is contained in:
parent
9ce02d2717
commit
415af5e257
6 changed files with 8 additions and 8 deletions
|
@ -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):
|
||||
|
|
|
@ -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."""
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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'])
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue