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"}
# 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.
API_THERMOSTAT_MODES = OrderedDict(
[

View file

@ -163,7 +163,7 @@ class AlexaResponse:
The Alexa response includes a list of properties which provides
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
"Thermostat set to 20 degrees".

View file

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

View file

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

View file

@ -31,7 +31,7 @@ async def async_setup(hass):
"""Init mfa setup flow manager."""
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)
if mfa_module is None:
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_MAX_TEMP = 35
DEFAULT_MIN_HUMITIDY = 30
DEFAULT_MIN_HUMIDITY = 30
DEFAULT_MAX_HUMIDITY = 99
DOMAIN = "climate"

View file

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

View file

@ -51,7 +51,7 @@ NORMAL_INPUTS = {
"Dvd": "DVD",
"Blue ray": "BD",
"TV": "TV",
"Satelite / Cable": "SAT/CBL",
"Satellite / Cable": "SAT/CBL",
"Game": "GAME",
"Game2": "GAME2",
"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
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
# Table 130, Thermostat Mode Set version 3::Mode encoding.
# 4 AUXILARY
# 4 AUXILIARY
OPMODES_PRESET = {
5: PRESET_RESUME,
7: PRESET_FURNACE,

View file

@ -256,6 +256,6 @@ class GoogleCloudTTSProvider(Provider):
except asyncio.TimeoutError as ex:
_LOGGER.error("Timeout for Google Cloud TTS call: %s", ex)
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

View file

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

View file

@ -69,7 +69,7 @@ class HMThermostat(HMDevice, ClimateDevice):
if self.target_temperature <= self._hmdevice.OFF_VALUE + 0.5:
return HVAC_MODE_OFF
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_AUTO
@ -95,7 +95,7 @@ class HMThermostat(HMDevice, ClimateDevice):
return "boost"
# 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()
# Filter HVAC states
@ -173,7 +173,7 @@ class HMThermostat(HMDevice, ClimateDevice):
return 0.5
@property
def _hm_controll_mode(self):
def _hm_control_mode(self):
"""Return Control mode."""
if HMIP_CONTROL_MODE in self._data:
return self._data[HMIP_CONTROL_MODE]

View file

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

View file

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

View file

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

View file

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

View file

@ -152,7 +152,7 @@ class LinkySensor(Entity):
}
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]
self.__consumption = data[CONSUMPTION]
self.__time = data[TIME]

View file

@ -152,7 +152,7 @@ def setup(hass, config):
if CONF_MONITORED_CONDITIONS in location:
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(
hass,
"sensor",

View file

@ -431,7 +431,7 @@ async def async_subscribe(
)
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:
_LOGGER.warning(
"Signature of MQTT msg_callback '%s.%s' is deprecated",

View file

@ -102,7 +102,7 @@ TILT_FEATURES = (
def validate_options(value):
"""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:
raise vol.Invalid(

View file

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

View file

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

View file

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

View file

@ -117,7 +117,7 @@ class RachioStandbySwitch(RachioSwitch):
@property
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)
@property
@ -182,7 +182,7 @@ class RachioZone(RachioSwitch):
@property
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)
@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 voluptuous as vol

View file

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

View file

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

View file

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

View file

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

View file

@ -63,7 +63,7 @@ def stream_worker(hass, stream, quit_event):
sequence = 1
# Holds the generated silence that needs to be muxed into the output
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
# The decoder timestamp of the latest packet we processed
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
# timestamps for us, we need to do it ourselves by recording
# the first presentation timestamp and subtracting it from
# subsequent packets we recieve.
# subsequent packets we receive.
if (packet.pts * packet.time_base) > 1:
first_pts = packet.pts
packet.dts = 0

View file

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

View file

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

View file

@ -84,7 +84,7 @@ class TodSensor(BinarySensorDevice):
@property
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
@property

View file

@ -46,7 +46,7 @@ def _async_setup_entities(devices, async_add_entities):
dev_list.append(VeSyncLightSwitch(dev))
else:
_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

View file

@ -72,7 +72,7 @@ class WirelessTagSensor(WirelessTagBaseSensor):
@property
def entity_id(self):
"""Overriden version."""
"""Overridden version."""
return self._entity_id
@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)
# add devices after SIGNAL_DEVICE_SETTED_UP event is listend
# add devices after SIGNAL_DEVICE_SETTED_UP event is listened
add_entities(devices)
def stop_listen(event):

View file

@ -261,7 +261,7 @@ def icon(value):
if ":" in 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(