mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Spelling fixes (#13681)
This commit is contained in:
parent
9ce02d2717
commit
415af5e257
@ -93,7 +93,7 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
|
|||||||
|
|
||||||
|
|
||||||
class IFTTTAlarmPanel(alarm.AlarmControlPanel):
|
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,
|
def __init__(self, name, code, event_away, event_home, event_night,
|
||||||
event_disarm, optimistic):
|
event_disarm, optimistic):
|
||||||
|
@ -179,7 +179,7 @@ class NestThermostat(ClimateDevice):
|
|||||||
try:
|
try:
|
||||||
self.device.target = temp
|
self.device.target = temp
|
||||||
except nest.nest.APIError:
|
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):
|
def set_operation_mode(self, operation_mode):
|
||||||
"""Set operation mode."""
|
"""Set operation mode."""
|
||||||
|
@ -95,7 +95,7 @@ class UbusDeviceScanner(DeviceScanner):
|
|||||||
return self.last_results
|
return self.last_results
|
||||||
|
|
||||||
def _generate_mac2name(self):
|
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()
|
self.mac2name = dict()
|
||||||
|
|
||||||
@_refresh_on_access_denied
|
@_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):
|
while (utcnow() - start_time) < timedelta(seconds=timeout):
|
||||||
message = yield from hass.async_add_job(
|
message = yield from hass.async_add_job(
|
||||||
device.read, slot)
|
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']:
|
if 'code' in message and message['code']:
|
||||||
log_msg = "Received command is: {}".format(message['code'])
|
log_msg = "Received command is: {}".format(message['code'])
|
||||||
|
@ -264,7 +264,7 @@ class Smappee(object):
|
|||||||
return True
|
return True
|
||||||
|
|
||||||
def active_power(self):
|
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:
|
if not self.is_local_active:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
@ -153,13 +153,13 @@ class TestAccessories(unittest.TestCase):
|
|||||||
def test_home_driver(self):
|
def test_home_driver(self):
|
||||||
"""Test HomeDriver class."""
|
"""Test HomeDriver class."""
|
||||||
bridge = HomeBridge(None)
|
bridge = HomeBridge(None)
|
||||||
ip_adress = '127.0.0.1'
|
ip_address = '127.0.0.1'
|
||||||
port = 51826
|
port = 51826
|
||||||
path = '.homekit.state'
|
path = '.homekit.state'
|
||||||
|
|
||||||
with patch('pyhap.accessory_driver.AccessoryDriver.__init__') \
|
with patch('pyhap.accessory_driver.AccessoryDriver.__init__') \
|
||||||
as mock_driver:
|
as mock_driver:
|
||||||
HomeDriver(bridge, ip_adress, port, path)
|
HomeDriver(bridge, ip_address, port, path)
|
||||||
|
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
mock_driver.call_args, call(bridge, ip_adress, port, path))
|
mock_driver.call_args, call(bridge, ip_address, port, path))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user