Spelling fixes (#11940)
This commit is contained in:
1 parent
94316f07a2
commit
55ee8959ba
80 files changed
+110
-110
No files matched your search
@@ -68,7 +68,7 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||
|
||||
|
||||
class AcerSwitch(SwitchDevice):
|
||||
"""Represents an Acer Projector as an switch."""
|
||||
"""Represents an Acer Projector as a switch."""
|
||||
|
||||
def __init__(self, serial_port, name, timeout, write_timeout, **kwargs):
|
||||
"""Init of the Acer projector."""
|
||||
|
||||
@@ -100,7 +100,7 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||
packet = yield from hass.async_add_job(
|
||||
broadlink_device.check_data)
|
||||
if packet:
|
||||
log_msg = "Recieved packet is: {}".\
|
||||
log_msg = "Received packet is: {}".\
|
||||
format(b64encode(packet).decode('utf8'))
|
||||
_LOGGER.info(log_msg)
|
||||
hass.components.persistent_notification.async_create(
|
||||
|
||||
@@ -73,7 +73,7 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||
|
||||
|
||||
class DINRelay(SwitchDevice):
|
||||
"""Representation of a individual DIN III relay port."""
|
||||
"""Representation of an individual DIN III relay port."""
|
||||
|
||||
def __init__(self, controller_name, parent_device, outlet):
|
||||
"""Initialize the DIN III Relay switch."""
|
||||
|
||||
@@ -210,7 +210,7 @@ class FluxSwitch(SwitchDevice):
|
||||
else:
|
||||
temp = self._start_colortemp + temp_offset
|
||||
else:
|
||||
# Nightime
|
||||
# Night time
|
||||
time_state = 'night'
|
||||
|
||||
if now < stop_time:
|
||||
|
||||
@@ -65,5 +65,5 @@ class HiveDevicePlug(SwitchDevice):
|
||||
entity.handle_update(self.data_updatesource)
|
||||
|
||||
def update(self):
|
||||
"""Update all Node data frome Hive."""
|
||||
"""Update all Node data from Hive."""
|
||||
self.session.core.update_data(self.node_id)
|
||||
@@ -83,7 +83,7 @@ class InsteonPLMSwitchDevice(SwitchDevice):
|
||||
@callback
|
||||
def async_switch_update(self, message):
|
||||
"""Receive notification from transport that new data exists."""
|
||||
_LOGGER.info('Received update calback from PLM for %s', self._address)
|
||||
_LOGGER.info('Received update callback from PLM for %s', self._address)
|
||||
self._hass.async_add_job(self.async_update_ha_state())
|
||||
|
||||
@asyncio.coroutine
|
||||
|
||||
@@ -35,7 +35,7 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||
|
||||
sensors = []
|
||||
for sensor_type in config.get(CONF_MONITORED_CONDITIONS):
|
||||
# create an sensor for each zone managed by faucet
|
||||
# create a sensor for each zone managed by faucet
|
||||
for zone in raincloud.controller.faucet.zones:
|
||||
sensors.append(
|
||||
RainCloudSwitch(default_watering_timer,
|
||||
|
||||
@@ -155,7 +155,7 @@ class SCSGateSwitch(SwitchDevice):
|
||||
class SCSGateScenarioSwitch(object):
|
||||
"""Provides a SCSGate scenario switch.
|
||||
|
||||
This switch is always in a 'off" state, when toggled it's used to trigger
|
||||
This switch is always in an 'off" state, when toggled it's used to trigger
|
||||
events.
|
||||
"""
|
||||
|
||||
|
||||
Reference in new issue
Block a user