Spelling fixes (#25666)

This commit is contained in:
Ville Skyttä 2019-08-03 00:20:07 +03:00 committed by Pascal Vizeli
parent 2f7c57b257
commit a54ade1189
38 changed files with 52 additions and 52 deletions

View file

@ -47,7 +47,7 @@ CONF_DISPLAY_CATEGORIES = "display_categories"
API_TEMP_UNITS = {TEMP_FAHRENHEIT: "FAHRENHEIT", TEMP_CELSIUS: "CELSIUS"} API_TEMP_UNITS = {TEMP_FAHRENHEIT: "FAHRENHEIT", TEMP_CELSIUS: "CELSIUS"}
# Needs to be ordered dict for `async_api_set_thermostat_mode` which does a # Needs to be ordered dict for `async_api_set_thermostat_mode` which does a
# reverse mapping of this dict and we want to map the first occurrance of OFF # reverse mapping of this dict and we want to map the first occurrence of OFF
# back to HA state. # back to HA state.
API_THERMOSTAT_MODES = OrderedDict( API_THERMOSTAT_MODES = OrderedDict(
[ [

View file

@ -163,7 +163,7 @@ class AlexaResponse:
The Alexa response includes a list of properties which provides The Alexa response includes a list of properties which provides
feedback on how states have changed. For example if a user asks, feedback on how states have changed. For example if a user asks,
"Alexa, set theromstat to 20 degrees", the API expects a response with "Alexa, set thermostat to 20 degrees", the API expects a response with
the new value of the property, and Alexa will respond to the user the new value of the property, and Alexa will respond to the user
"Thermostat set to 20 degrees". "Thermostat set to 20 degrees".

View file

@ -45,7 +45,7 @@ SUPPORTED_VOICES = [
"Ruben", "Ruben",
"Lotte", # Dutch "Lotte", # Dutch
"Russell", "Russell",
"Nicole", # English Austrailian "Nicole", # English Australian
"Brian", "Brian",
"Amy", "Amy",
"Emma", # English "Emma", # English

View file

@ -124,7 +124,7 @@ class ArcamFmj(MediaPlayerDevice):
return support return support
async def async_added_to_hass(self): async def async_added_to_hass(self):
"""Once registed add listener for events.""" """Once registered, add listener for events."""
await self._state.start() await self._state.start()
@callback @callback

View file

@ -31,7 +31,7 @@ async def async_setup(hass):
"""Init mfa setup flow manager.""" """Init mfa setup flow manager."""
async def _async_create_setup_flow(handler, context, data): async def _async_create_setup_flow(handler, context, data):
"""Create a setup flow. hanlder is a mfa module.""" """Create a setup flow. handler is a mfa module."""
mfa_module = hass.auth.get_auth_mfa_module(handler) mfa_module = hass.auth.get_auth_mfa_module(handler)
if mfa_module is None: if mfa_module is None:
raise ValueError("Mfa module {} is not found".format(handler)) raise ValueError("Mfa module {} is not found".format(handler))

View file

@ -108,7 +108,7 @@ ATTR_TARGET_TEMP_STEP = "target_temp_step"
DEFAULT_MIN_TEMP = 7 DEFAULT_MIN_TEMP = 7
DEFAULT_MAX_TEMP = 35 DEFAULT_MAX_TEMP = 35
DEFAULT_MIN_HUMITIDY = 30 DEFAULT_MIN_HUMIDITY = 30
DEFAULT_MAX_HUMIDITY = 99 DEFAULT_MAX_HUMIDITY = 99
DOMAIN = "climate" DOMAIN = "climate"

View file

@ -50,7 +50,7 @@ async def async_setup_platform(hass, config, async_add_entities, discovery_info=
) )
await line.get_passages() await line.get_passages()
if line.passages is None: if line.passages is None:
_LOGGER.warning("No data recieved from De Lijn") _LOGGER.warning("No data received from De Lijn")
return return
sensors.append(DeLijnPublicTransportSensor(line, name)) sensors.append(DeLijnPublicTransportSensor(line, name))
@ -71,7 +71,7 @@ class DeLijnPublicTransportSensor(Entity):
"""Get the latest data from the De Lijn API.""" """Get the latest data from the De Lijn API."""
await self.line.get_passages() await self.line.get_passages()
if self.line.passages is None: if self.line.passages is None:
_LOGGER.warning("No data recieved from De Lijn") _LOGGER.warning("No data received from De Lijn")
return return
try: try:
first = self.line.passages[0] first = self.line.passages[0]

View file

@ -51,7 +51,7 @@ NORMAL_INPUTS = {
"Dvd": "DVD", "Dvd": "DVD",
"Blue ray": "BD", "Blue ray": "BD",
"TV": "TV", "TV": "TV",
"Satelite / Cable": "SAT/CBL", "Satellite / Cable": "SAT/CBL",
"Game": "GAME", "Game": "GAME",
"Game2": "GAME2", "Game2": "GAME2",
"Video Aux": "V.AUX", "Video Aux": "V.AUX",

View file

@ -1,4 +1,4 @@
"""Support for local control of entities by emulating a Phillips Hue bridge.""" """Support for local control of entities by emulating a Philips Hue bridge."""
import logging import logging
from aiohttp import web from aiohttp import web

View file

@ -50,7 +50,7 @@ HA_FANMODES = {v: k for k, v in FANMODES.items()}
# SDS13781-10 Z-Wave Application Command Class Specification 2019-01-04 # SDS13781-10 Z-Wave Application Command Class Specification 2019-01-04
# Table 130, Thermostat Mode Set version 3::Mode encoding. # Table 130, Thermostat Mode Set version 3::Mode encoding.
# 4 AUXILARY # 4 AUXILIARY
OPMODES_PRESET = { OPMODES_PRESET = {
5: PRESET_RESUME, 5: PRESET_RESUME,
7: PRESET_FURNACE, 7: PRESET_FURNACE,

View file

@ -256,6 +256,6 @@ class GoogleCloudTTSProvider(Provider):
except asyncio.TimeoutError as ex: except asyncio.TimeoutError as ex:
_LOGGER.error("Timeout for Google Cloud TTS call: %s", ex) _LOGGER.error("Timeout for Google Cloud TTS call: %s", ex)
except Exception as ex: # pylint: disable=broad-except except Exception as ex: # pylint: disable=broad-except
_LOGGER.exception("Error occured during Google Cloud TTS call: %s", ex) _LOGGER.exception("Error occurred during Google Cloud TTS call: %s", ex)
return None, None return None, None

View file

@ -262,7 +262,7 @@ class HomekitControllerFlowHandler(config_entries.ConfigFlow):
# PairVerify M4 - Ed25519 signature verification failed # PairVerify M4 - Ed25519 signature verification failed
errors["pairing_code"] = "authentication_error" errors["pairing_code"] = "authentication_error"
except homekit.UnknownError: except homekit.UnknownError:
# An error occured on the device whilst performing this # An error occurred on the device whilst performing this
# operation. # operation.
errors["pairing_code"] = "unknown_error" errors["pairing_code"] = "unknown_error"
except homekit.MaxPeersError: except homekit.MaxPeersError:

View file

@ -69,7 +69,7 @@ class HMThermostat(HMDevice, ClimateDevice):
if self.target_temperature <= self._hmdevice.OFF_VALUE + 0.5: if self.target_temperature <= self._hmdevice.OFF_VALUE + 0.5:
return HVAC_MODE_OFF return HVAC_MODE_OFF
if "MANU_MODE" in self._hmdevice.ACTIONNODE: if "MANU_MODE" in self._hmdevice.ACTIONNODE:
if self._hm_controll_mode == self._hmdevice.MANU_MODE: if self._hm_control_mode == self._hmdevice.MANU_MODE:
return HVAC_MODE_HEAT return HVAC_MODE_HEAT
return HVAC_MODE_AUTO return HVAC_MODE_AUTO
@ -95,7 +95,7 @@ class HMThermostat(HMDevice, ClimateDevice):
return "boost" return "boost"
# Get the name of the mode # Get the name of the mode
mode = HM_ATTRIBUTE_SUPPORT[HM_CONTROL_MODE][1][self._hm_controll_mode] mode = HM_ATTRIBUTE_SUPPORT[HM_CONTROL_MODE][1][self._hm_control_mode]
mode = mode.lower() mode = mode.lower()
# Filter HVAC states # Filter HVAC states
@ -173,7 +173,7 @@ class HMThermostat(HMDevice, ClimateDevice):
return 0.5 return 0.5
@property @property
def _hm_controll_mode(self): def _hm_control_mode(self):
"""Return Control mode.""" """Return Control mode."""
if HMIP_CONTROL_MODE in self._data: if HMIP_CONTROL_MODE in self._data:
return self._data[HMIP_CONTROL_MODE] return self._data[HMIP_CONTROL_MODE]

View file

@ -144,7 +144,7 @@ class HomematicipAccesspointStatus(HomematicipGenericDevice):
class HomematicipHeatingThermostat(HomematicipGenericDevice): class HomematicipHeatingThermostat(HomematicipGenericDevice):
"""Represenation of a HomematicIP heating thermostat device.""" """Representation of a HomematicIP heating thermostat device."""
def __init__(self, home: AsyncHome, device) -> None: def __init__(self, home: AsyncHome, device) -> None:
"""Initialize heating thermostat device.""" """Initialize heating thermostat device."""
@ -173,7 +173,7 @@ class HomematicipHeatingThermostat(HomematicipGenericDevice):
class HomematicipHumiditySensor(HomematicipGenericDevice): class HomematicipHumiditySensor(HomematicipGenericDevice):
"""Represenation of a HomematicIP Cloud humidity device.""" """Representation of a HomematicIP Cloud humidity device."""
def __init__(self, home: AsyncHome, device) -> None: def __init__(self, home: AsyncHome, device) -> None:
"""Initialize the thermometer device.""" """Initialize the thermometer device."""
@ -233,7 +233,7 @@ class HomematicipTemperatureSensor(HomematicipGenericDevice):
class HomematicipIlluminanceSensor(HomematicipGenericDevice): class HomematicipIlluminanceSensor(HomematicipGenericDevice):
"""Represenation of a HomematicIP Illuminance device.""" """Representation of a HomematicIP Illuminance device."""
def __init__(self, home: AsyncHome, device) -> None: def __init__(self, home: AsyncHome, device) -> None:
"""Initialize the device.""" """Initialize the device."""
@ -259,7 +259,7 @@ class HomematicipIlluminanceSensor(HomematicipGenericDevice):
class HomematicipPowerSensor(HomematicipGenericDevice): class HomematicipPowerSensor(HomematicipGenericDevice):
"""Represenation of a HomematicIP power measuring device.""" """Representation of a HomematicIP power measuring device."""
def __init__(self, home: AsyncHome, device) -> None: def __init__(self, home: AsyncHome, device) -> None:
"""Initialize the device.""" """Initialize the device."""
@ -272,7 +272,7 @@ class HomematicipPowerSensor(HomematicipGenericDevice):
@property @property
def state(self) -> float: def state(self) -> float:
"""Represenation of the HomematicIP power comsumption value.""" """Representation of the HomematicIP power comsumption value."""
return self._device.currentPowerConsumption return self._device.currentPowerConsumption
@property @property
@ -282,7 +282,7 @@ class HomematicipPowerSensor(HomematicipGenericDevice):
class HomematicipWindspeedSensor(HomematicipGenericDevice): class HomematicipWindspeedSensor(HomematicipGenericDevice):
"""Represenation of a HomematicIP wind speed sensor.""" """Representation of a HomematicIP wind speed sensor."""
def __init__(self, home: AsyncHome, device) -> None: def __init__(self, home: AsyncHome, device) -> None:
"""Initialize the device.""" """Initialize the device."""
@ -290,7 +290,7 @@ class HomematicipWindspeedSensor(HomematicipGenericDevice):
@property @property
def state(self) -> float: def state(self) -> float:
"""Represenation of the HomematicIP wind speed value.""" """Representation of the HomematicIP wind speed value."""
return self._device.windSpeed return self._device.windSpeed
@property @property
@ -313,7 +313,7 @@ class HomematicipWindspeedSensor(HomematicipGenericDevice):
class HomematicipTodayRainSensor(HomematicipGenericDevice): class HomematicipTodayRainSensor(HomematicipGenericDevice):
"""Represenation of a HomematicIP rain counter of a day sensor.""" """Representation of a HomematicIP rain counter of a day sensor."""
def __init__(self, home: AsyncHome, device) -> None: def __init__(self, home: AsyncHome, device) -> None:
"""Initialize the device.""" """Initialize the device."""
@ -321,7 +321,7 @@ class HomematicipTodayRainSensor(HomematicipGenericDevice):
@property @property
def state(self) -> float: def state(self) -> float:
"""Represenation of the HomematicIP todays rain value.""" """Representation of the HomematicIP todays rain value."""
return round(self._device.todayRainCounter, 2) return round(self._device.todayRainCounter, 2)
@property @property

View file

@ -1,6 +1,6 @@
{ {
"domain": "huawei_lte", "domain": "huawei_lte",
"name": "Huawei lte", "name": "Huawei LTE",
"documentation": "https://www.home-assistant.io/components/huawei_lte", "documentation": "https://www.home-assistant.io/components/huawei_lte",
"requirements": [ "requirements": [
"getmac==0.8.1", "getmac==0.8.1",

View file

@ -24,6 +24,6 @@
"title": "Hwb cyswllt" "title": "Hwb cyswllt"
} }
}, },
"title": "Pont Phillips Hue" "title": "Pont Philips Hue"
} }
} }

View file

@ -49,7 +49,7 @@ class LaunchLibrarySensor(Entity):
"""Get the latest data.""" """Get the latest data."""
await self.launches.get_launches() await self.launches.get_launches()
if self.launches.launches is None: if self.launches.launches is None:
_LOGGER.error("No data recieved") _LOGGER.error("No data received")
return return
try: try:
data = self.launches.launches[0] data = self.launches.launches[0]

View file

@ -152,7 +152,7 @@ class LinkySensor(Entity):
} }
def update(self): def update(self):
"""Retreive the new data for the sensor.""" """Retrieve the new data for the sensor."""
data = self.__account.data[self._scale][self.__when] data = self.__account.data[self._scale][self.__when]
self.__consumption = data[CONSUMPTION] self.__consumption = data[CONSUMPTION]
self.__time = data[TIME] self.__time = data[TIME]

View file

@ -152,7 +152,7 @@ def setup(hass, config):
if CONF_MONITORED_CONDITIONS in location: if CONF_MONITORED_CONDITIONS in location:
monitored_conditions = location[CONF_MONITORED_CONDITIONS] monitored_conditions = location[CONF_MONITORED_CONDITIONS]
_LOGGER.debug("meteo_france sensor platfrom loaded for %s", city) _LOGGER.debug("meteo_france sensor platform loaded for %s", city)
load_platform( load_platform(
hass, hass,
"sensor", "sensor",

View file

@ -431,7 +431,7 @@ async def async_subscribe(
) )
wrapped_msg_callback = msg_callback wrapped_msg_callback = msg_callback
# If we have 3 paramaters with no default value, wrap the callback # If we have 3 parameters with no default value, wrap the callback
if non_default == 3: if non_default == 3:
_LOGGER.warning( _LOGGER.warning(
"Signature of MQTT msg_callback '%s.%s' is deprecated", "Signature of MQTT msg_callback '%s.%s' is deprecated",

View file

@ -102,7 +102,7 @@ TILT_FEATURES = (
def validate_options(value): def validate_options(value):
"""Validate options. """Validate options.
If set postion topic is set then get position topic is set as well. If set position topic is set then get position topic is set as well.
""" """
if CONF_SET_POSITION_TOPIC in value and CONF_GET_POSITION_TOPIC not in value: if CONF_SET_POSITION_TOPIC in value and CONF_GET_POSITION_TOPIC not in value:
raise vol.Invalid( raise vol.Invalid(

View file

@ -1,4 +1,4 @@
"""Suport for Netgear LTE notifications.""" """Support for Netgear LTE notifications."""
import logging import logging
import attr import attr

View file

@ -65,7 +65,7 @@ class MinutPointAlarmControl(AlarmControlPanel):
_device_id = data.get("event", {}).get("device_id") _device_id = data.get("event", {}).get("device_id")
if _device_id not in self._home["devices"] or _type not in EVENT_MAP: if _device_id not in self._home["devices"] or _type not in EVENT_MAP:
return return
_LOGGER.debug("Recieved webhook: %s", _type) _LOGGER.debug("Received webhook: %s", _type)
self._home["alarm_status"] = EVENT_MAP[_type] self._home["alarm_status"] = EVENT_MAP[_type]
self._changed_by = _device_id self._changed_by = _device_id
self.async_schedule_update_ha_state() self.async_schedule_update_ha_state()

View file

@ -106,7 +106,7 @@ class MinutPointBinarySensor(MinutPointEntity, BinarySensorDevice):
_device_id = data.get("event", {}).get("device_id") _device_id = data.get("event", {}).get("device_id")
if _type not in self._events or _device_id != self.device.device_id: if _type not in self._events or _device_id != self.device.device_id:
return return
_LOGGER.debug("Recieved webhook: %s", _type) _LOGGER.debug("Received webhook: %s", _type)
if _type == self._events[0]: if _type == self._events[0]:
self._is_on = True self._is_on = True
if _type == self._events[1]: if _type == self._events[1]:

View file

@ -117,7 +117,7 @@ class RachioStandbySwitch(RachioSwitch):
@property @property
def unique_id(self) -> str: def unique_id(self) -> str:
"""Return a unique id by combinining controller id and purpose.""" """Return a unique id by combining controller id and purpose."""
return "{}-standby".format(self._controller.controller_id) return "{}-standby".format(self._controller.controller_id)
@property @property
@ -182,7 +182,7 @@ class RachioZone(RachioSwitch):
@property @property
def unique_id(self) -> str: def unique_id(self) -> str:
"""Return a unique id by combinining controller id and zone number.""" """Return a unique id by combining controller id and zone number."""
return "{}-zone-{}".format(self._controller.controller_id, self.zone_id) return "{}-zone-{}".format(self._controller.controller_id, self.zone_id)
@property @property

View file

@ -1,4 +1,4 @@
"""Support for switchs that can be controlled using the RaspyRFM rc module.""" """Support for switches that can be controlled using the RaspyRFM rc module."""
import logging import logging
import voluptuous as vol import voluptuous as vol

View file

@ -192,7 +192,7 @@ class PublicTransportData:
_LOGGER.debug("API returned error: %s", error) _LOGGER.debug("API returned error: %s", error)
return return
except (rjpl.rjplConnectionError, rjpl.rjplHTTPError): except (rjpl.rjplConnectionError, rjpl.rjplHTTPError):
_LOGGER.debug("Error occured while connecting to the API") _LOGGER.debug("Error occurred while connecting to the API")
return return
# Filter result # Filter result

View file

@ -62,7 +62,7 @@ class RuterSensor(Entity):
"""Get the latest data from the Ruter API.""" """Get the latest data from the Ruter API."""
await self.ruter.get_departures() await self.ruter.get_departures()
if self.ruter.departures is None: if self.ruter.departures is None:
_LOGGER.error("No data recieved from Ruter.") _LOGGER.error("No data received from Ruter.")
return return
try: try:
data = self.ruter.departures[self._offset] data = self.ruter.departures[self._offset]

View file

@ -112,7 +112,7 @@ class Scanner:
return (entry, info_from_entry(entry, None), domains) return (entry, info_from_entry(entry, None), domains)
return None return None
# Multiple entries usally share same location. Make sure # Multiple entries usually share same location. Make sure
# we fetch it only once. # we fetch it only once.
info_req = self._description_cache.get(xml_location) info_req = self._description_cache.get(xml_location)

View file

@ -114,7 +114,7 @@ class StreamOutput:
@callback @callback
def put(self, segment: Segment) -> None: def put(self, segment: Segment) -> None:
"""Store output.""" """Store output."""
# Start idle timeout when we start recieving data # Start idle timeout when we start receiving data
if self._unsub is None: if self._unsub is None:
self._unsub = async_call_later( self._unsub = async_call_later(
self._stream.hass, self.timeout, self._timeout self._stream.hass, self.timeout, self._timeout

View file

@ -63,7 +63,7 @@ def stream_worker(hass, stream, quit_event):
sequence = 1 sequence = 1
# Holds the generated silence that needs to be muxed into the output # Holds the generated silence that needs to be muxed into the output
audio_packets = {} audio_packets = {}
# The presentation timestamp of the first video packet we recieve # The presentation timestamp of the first video packet we receive
first_pts = 0 first_pts = 0
# The decoder timestamp of the latest packet we processed # The decoder timestamp of the latest packet we processed
last_dts = None last_dts = None
@ -130,7 +130,7 @@ def stream_worker(hass, stream, quit_event):
# If we are attaching to a live stream that does not reset # If we are attaching to a live stream that does not reset
# timestamps for us, we need to do it ourselves by recording # timestamps for us, we need to do it ourselves by recording
# the first presentation timestamp and subtracting it from # the first presentation timestamp and subtracting it from
# subsequent packets we recieve. # subsequent packets we receive.
if (packet.pts * packet.time_base) > 1: if (packet.pts * packet.time_base) > 1:
first_pts = packet.pts first_pts = packet.pts
packet.dts = 0 packet.dts = 0

View file

@ -116,7 +116,7 @@ async def async_setup(hass: HomeAssistantType, config: Dict) -> bool:
async def async_switch_platform_discovered( async def async_switch_platform_discovered(
platform: str, discovery_info: Optional[Dict] platform: str, discovery_info: Optional[Dict]
) -> None: ) -> None:
"""Use for registering services after switch platform is discoverd.""" """Use for registering services after switch platform is discovered."""
if platform != DOMAIN: if platform != DOMAIN:
return return

View file

@ -116,7 +116,7 @@ class LogEntry:
return frozenset([self.message, self.root_cause]) return frozenset([self.message, self.root_cause])
def to_dict(self): def to_dict(self):
"""Convert object into dict to maintain backward compatability.""" """Convert object into dict to maintain backward compatibility."""
return vars(self) return vars(self)

View file

@ -84,7 +84,7 @@ class TodSensor(BinarySensorDevice):
@property @property
def after(self): def after(self):
"""Return the timestamp for the begining of the period.""" """Return the timestamp for the beginning of the period."""
return self._time_after return self._time_after
@property @property

View file

@ -46,7 +46,7 @@ def _async_setup_entities(devices, async_add_entities):
dev_list.append(VeSyncLightSwitch(dev)) dev_list.append(VeSyncLightSwitch(dev))
else: else:
_LOGGER.warning( _LOGGER.warning(
"%s - Unkown device type - %s", dev.device_name, dev.device_type "%s - Unknown device type - %s", dev.device_name, dev.device_type
) )
continue continue

View file

@ -72,7 +72,7 @@ class WirelessTagSensor(WirelessTagBaseSensor):
@property @property
def entity_id(self): def entity_id(self):
"""Overriden version.""" """Overridden version."""
return self._entity_id return self._entity_id
@property @property

View file

@ -82,7 +82,7 @@ def setup_platform(hass, config, add_entities, discovery_info=None):
async_dispatcher_connect(hass, SIGNAL_DEVICE_ADDED, startup) async_dispatcher_connect(hass, SIGNAL_DEVICE_ADDED, startup)
# add devices after SIGNAL_DEVICE_SETTED_UP event is listend # add devices after SIGNAL_DEVICE_SETTED_UP event is listened
add_entities(devices) add_entities(devices)
def stop_listen(event): def stop_listen(event):

View file

@ -261,7 +261,7 @@ def icon(value):
if ":" in value: if ":" in value:
return value return value
raise vol.Invalid('Icons should be specifed on the form "prefix:name"') raise vol.Invalid('Icons should be specified in the form "prefix:name"')
time_period_dict = vol.All( time_period_dict = vol.All(