Spelling fixes (#12041)
* Spelling fixes *Lots* of them. * Spelling breaking changes * Fix lint errors
This commit is contained in:
1 parent
38fd9b65bf
commit
8dcfd35b8b
138 files changed
+285
-286
No files matched your search
@@ -254,7 +254,7 @@ def async_setup(hass, config):
|
||||
|
||||
@asyncio.coroutine
|
||||
def async_handle_light_service(service):
|
||||
"""Hande a turn light on or off service call."""
|
||||
"""Handle a turn light on or off service call."""
|
||||
# Get the validated data
|
||||
params = service.data.copy()
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
|
||||
def retry(method):
|
||||
"""Retry bluetooth commands."""
|
||||
@wraps(method)
|
||||
def wrapper_retry(device, *args, **kwds):
|
||||
def wrapper_retry(device, *args, **kwargs):
|
||||
"""Try send command and retry on error."""
|
||||
# pylint: disable=import-error
|
||||
import decora
|
||||
@@ -46,7 +46,7 @@ def retry(method):
|
||||
if time.monotonic() - initial >= 10:
|
||||
return None
|
||||
try:
|
||||
return method(device, *args, **kwds)
|
||||
return method(device, *args, **kwargs)
|
||||
except (decora.decoraException, AttributeError,
|
||||
bluepy.btle.BTLEException):
|
||||
_LOGGER.warning("Decora connect error for device %s. "
|
||||
|
||||
@@ -46,7 +46,7 @@ EFFECT_GREEN_BLUE_CROSS_FADE = 'gb_cross_fade'
|
||||
EFFECT_COLORSTROBE = 'colorstrobe'
|
||||
EFFECT_RED_STROBE = 'red_strobe'
|
||||
EFFECT_GREEN_STROBE = 'green_strobe'
|
||||
EFFECT_BLUE_STOBE = 'blue_strobe'
|
||||
EFFECT_BLUE_STROBE = 'blue_strobe'
|
||||
EFFECT_YELLOW_STROBE = 'yellow_strobe'
|
||||
EFFECT_CYAN_STROBE = 'cyan_strobe'
|
||||
EFFECT_PURPLE_STROBE = 'purple_strobe'
|
||||
@@ -68,7 +68,7 @@ EFFECT_MAP = {
|
||||
EFFECT_COLORSTROBE: 0x30,
|
||||
EFFECT_RED_STROBE: 0x31,
|
||||
EFFECT_GREEN_STROBE: 0x32,
|
||||
EFFECT_BLUE_STOBE: 0x33,
|
||||
EFFECT_BLUE_STROBE: 0x33,
|
||||
EFFECT_YELLOW_STROBE: 0x34,
|
||||
EFFECT_CYAN_STROBE: 0x35,
|
||||
EFFECT_PURPLE_STROBE: 0x36,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
"""
|
||||
Support for Homematic lighs.
|
||||
Support for Homematic lights.
|
||||
|
||||
For more details about this platform, please refer to the documentation at
|
||||
https://home-assistant.io/components/light.homematic/
|
||||
|
||||
@@ -31,7 +31,7 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
|
||||
|
||||
|
||||
def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||
"""Set up the iGlo lighs."""
|
||||
"""Set up the iGlo lights."""
|
||||
host = config.get(CONF_HOST)
|
||||
name = config.get(CONF_NAME)
|
||||
port = config.get(CONF_PORT)
|
||||
|
||||
@@ -27,7 +27,7 @@ def setup_platform(hass, config: ConfigType,
|
||||
|
||||
|
||||
class ISYLightDevice(ISYDevice, Light):
|
||||
"""Representation of an ISY994 light devie."""
|
||||
"""Representation of an ISY994 light device."""
|
||||
|
||||
def __init__(self, node: object) -> None:
|
||||
"""Initialize the ISY994 light device."""
|
||||
|
||||
@@ -57,7 +57,7 @@ def async_add_devices_discovery(hass, discovery_info, async_add_devices):
|
||||
|
||||
@callback
|
||||
def async_add_devices_config(hass, config, async_add_devices):
|
||||
"""Set up light for KNX platform configured within plattform."""
|
||||
"""Set up light for KNX platform configured within platform."""
|
||||
import xknx
|
||||
light = xknx.devices.Light(
|
||||
hass.data[DATA_KNX].xknx,
|
||||
|
||||
Reference in new issue
Block a user