Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spelling fixes #11940

Merged
merged 1 commit into from
Jan 27, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ homeassistant/components/*/zwave.py @home-assistant/z-wave

homeassistant/components/hassio.py @home-assistant/hassio

# Indiviudal components
# Individual components
homeassistant/components/alarm_control_panel/egardia.py @jeroenterheerdt
homeassistant/components/camera/yi.py @bachya
homeassistant/components/climate/ephember.py @ttroy50
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def async_handle_turn_service(service):
# have been processed. If a service does not exist it causes a 10
# second delay while we're blocking waiting for a response.
# But services can be registered on other HA instances that are
# listening to the bus too. So as a in between solution, we'll
# listening to the bus too. So as an in between solution, we'll
# block only if the service is defined in the current HA instance.
blocking = hass.services.has_service(domain, service.service)

Expand Down
8 changes: 4 additions & 4 deletions homeassistant/components/alexa/smart_home.py
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,7 @@ def async_api_set_brightness(hass, config, request, entity):
@extract_entity
@asyncio.coroutine
def async_api_adjust_brightness(hass, config, request, entity):
"""Process a adjust brightness request."""
"""Process an adjust brightness request."""
brightness_delta = int(request[API_PAYLOAD]['brightnessDelta'])

# read current state
Expand Down Expand Up @@ -812,7 +812,7 @@ def async_api_set_percentage(hass, config, request, entity):
@extract_entity
@asyncio.coroutine
def async_api_adjust_percentage(hass, config, request, entity):
"""Process a adjust percentage request."""
"""Process an adjust percentage request."""
percentage_delta = int(request[API_PAYLOAD]['percentageDelta'])
service = None
data = {ATTR_ENTITY_ID: entity.entity_id}
Expand Down Expand Up @@ -873,7 +873,7 @@ def async_api_lock(hass, config, request, entity):
@extract_entity
@asyncio.coroutine
def async_api_unlock(hass, config, request, entity):
"""Process a unlock request."""
"""Process an unlock request."""
yield from hass.services.async_call(entity.domain, SERVICE_UNLOCK, {
ATTR_ENTITY_ID: entity.entity_id
}, blocking=False)
Expand Down Expand Up @@ -904,7 +904,7 @@ def async_api_set_volume(hass, config, request, entity):
@extract_entity
@asyncio.coroutine
def async_api_adjust_volume(hass, config, request, entity):
"""Process a adjust volume request."""
"""Process an adjust volume request."""
volume_delta = int(request[API_PAYLOAD]['volume'])

current_level = entity.attributes.get(media_player.ATTR_MEDIA_VOLUME_LEVEL)
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/binary_sensor/hive.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,5 @@ def is_on(self):
self.node_device_type)

def update(self):
"""Update all Node data frome Hive."""
"""Update all Node data from Hive."""
self.session.core.update_data(self.node_id)
2 changes: 1 addition & 1 deletion homeassistant/components/binary_sensor/insteon_plm.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,5 +83,5 @@ def get_attr(self, key):
@callback
def async_binarysensor_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())
2 changes: 1 addition & 1 deletion homeassistant/components/binary_sensor/raincloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
sensor_type))

else:
# 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(RainCloudBinarySensor(zone, sensor_type))

Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/binary_sensor/wemo.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def unique_id(self):

@property
def name(self):
"""Return the name of the sevice if any."""
"""Return the name of the service if any."""
return self.wemo.name

@property
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/calendar/caldav.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ def update(self):

@staticmethod
def is_matching(vevent, search):
"""Return if the event matches the filter critera."""
"""Return if the event matches the filter criteria."""
if search is None:
return True

Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/calendar/todoist.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ def select_best_task(project_tasks):

The "best" event is determined by the following criteria:
* A proposed event must not be completed
* A proposed event must have a end date (otherwise we go with
* A proposed event must have an end date (otherwise we go with
the event at index 0, selected above)
* A proposed event must be on the same day or earlier as our
current event
Expand Down
4 changes: 2 additions & 2 deletions homeassistant/components/camera/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,13 @@ def async_snapshot(hass, filename, entity_id=None):
@bind_hass
@asyncio.coroutine
def async_get_image(hass, entity_id, timeout=10):
"""Fetch a image from a camera entity."""
"""Fetch an image from a camera entity."""
websession = async_get_clientsession(hass)
state = hass.states.get(entity_id)

if state is None:
raise HomeAssistantError(
"No entity '{0}' for grab a image".format(entity_id))
"No entity '{0}' for grab an image".format(entity_id))

url = "{0}{1}".format(
hass.config.api.base_url,
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/climate/demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ def set_hold_mode(self, hold):
self.schedule_update_ha_state()

def turn_aux_heat_on(self):
"""Turn auxillary heater on."""
"""Turn auxiliary heater on."""
self._aux = True
self.schedule_update_ha_state()

Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/climate/eq3btsmart.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def setup_platform(hass, config, add_devices, discovery_info=None):

# pylint: disable=import-error
class EQ3BTSmartThermostat(ClimateDevice):
"""Representation of a eQ-3 Bluetooth Smart thermostat."""
"""Representation of an eQ-3 Bluetooth Smart thermostat."""

def __init__(self, _mac, _name):
"""Initialize the thermostat."""
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/climate/hive.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,5 +174,5 @@ def turn_aux_heat_off(self):
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)
4 changes: 2 additions & 2 deletions homeassistant/components/climate/mqtt.py
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@ def async_set_hold_mode(self, hold):

@asyncio.coroutine
def async_turn_aux_heat_on(self):
"""Turn auxillary heater on."""
"""Turn auxiliary heater on."""
if self._topic[CONF_AUX_COMMAND_TOPIC] is not None:
mqtt.async_publish(self.hass, self._topic[CONF_AUX_COMMAND_TOPIC],
self._payload_on, self._qos, self._retain)
Expand All @@ -576,7 +576,7 @@ def async_turn_aux_heat_on(self):

@asyncio.coroutine
def async_turn_aux_heat_off(self):
"""Turn auxillary heater off."""
"""Turn auxiliary heater off."""
if self._topic[CONF_AUX_COMMAND_TOPIC] is not None:
mqtt.async_publish(self.hass, self._topic[CONF_AUX_COMMAND_TOPIC],
self._payload_off, self._qos, self._retain)
Expand Down
4 changes: 2 additions & 2 deletions homeassistant/components/climate/tado.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ def update(self):
data = self._store.get_data(self._data_id)

if data is None:
_LOGGER.debug("Recieved no data for zone %s", self.zone_name)
_LOGGER.debug("Received no data for zone %s", self.zone_name)
return

if 'sensorDataPoints' in data:
Expand Down Expand Up @@ -317,7 +317,7 @@ def update(self):
fan_speed = setting_data['fanSpeed']

if self._device_is_active:
# If you set mode manualy to off, there will be an overlay
# If you set mode manually to off, there will be an overlay
# and a termination, but we want to see the mode "OFF"
self._overlay_mode = termination
self._current_operation = termination
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/cover/zwave.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def is_opening(self):

@property
def is_closing(self):
"""Return true if cover is in an closing state."""
"""Return true if cover is in a closing state."""
return self._state == "Closing"

@property
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/device_tracker/actiontec.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def get_scanner(hass, config):


class ActiontecDeviceScanner(DeviceScanner):
"""This class queries a an actiontec router for connected devices."""
"""This class queries an actiontec router for connected devices."""

def __init__(self, config):
"""Initialize the scanner."""
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/emoncms_history.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def send_data(url, apikey, node, payload):
payload, fullurl, req.status_code)

def update_emoncms(time):
"""Send whitelisted entities states reguarly to Emoncms."""
"""Send whitelisted entities states regularly to Emoncms."""
payload_dict = {}

for entity_id in whitelist:
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/fan/xiaomi_miio.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ def is_on(self):

@asyncio.coroutine
def _try_command(self, mask_error, func, *args, **kwargs):
"""Call a air purifier command handling error messages."""
"""Call an air purifier command handling error messages."""
from miio import DeviceException
try:
result = yield from self.hass.async_add_job(
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/frontend/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ def update_theme_and_fire_event():

@callback
def set_theme(call):
"""Set backend-prefered theme."""
"""Set backend-preferred theme."""
data = call.data
name = data[CONF_NAME]
if name == DEFAULT_THEME or name in hass.data[DATA_THEMES]:
Expand Down
4 changes: 2 additions & 2 deletions homeassistant/components/google_assistant/smart_home.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def __init__(self, code, msg):
"""Log error code."""
super(SmartHomeError, self).__init__(msg)
_LOGGER.error(
"An error has ocurred in Google SmartHome: %s."
"An error has occurred in Google SmartHome: %s."
"Error code: %s", msg, code
)
self.code = code
Expand All @@ -96,7 +96,7 @@ def __init__(self, should_expose, agent_user_id, entity_config=None):


def entity_to_device(entity: Entity, config: Config, units: UnitSystem):
"""Convert a hass entity into an google actions device."""
"""Convert a hass entity into a google actions device."""
entity_config = config.entity_config.get(entity.entity_id, {})
google_domain = entity_config.get(CONF_TYPE)
class_data = MAPPING_COMPONENT.get(
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/homematic/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ def _system_callback_handler(hass, config, src, *args):
hass, discovery_type, addresses, interface)

# When devices of this type are found
# they are setup in HASS and an discovery event is fired
# they are setup in HASS and a discovery event is fired
if found_devices:
discovery.load_platform(hass, component_name, DOMAIN, {
ATTR_DISCOVER_DEVICES: found_devices
Expand Down
4 changes: 2 additions & 2 deletions homeassistant/components/homematic/services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ virtualkey:
description: Event to send i.e. PRESS_LONG, PRESS_SHORT.
example: PRESS_LONG
interface:
description: (Optional) for set a interface value.
description: (Optional) for set an interface value.
example: Interfaces name from config

set_variable_value:
Expand Down Expand Up @@ -42,7 +42,7 @@ set_device_value:
description: Event to send i.e. PRESS_LONG, PRESS_SHORT
example: PRESS_LONG
interface:
description: (Optional) for set a interface value
description: (Optional) for set an interface value
example: Interfaces name from config
value:
description: New value
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/image_processing/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@

@bind_hass
def scan(hass, entity_id=None):
"""Force process a image."""
"""Force process an image."""
data = {ATTR_ENTITY_ID: entity_id} if entity_id else None
hass.services.call(DOMAIN, SERVICE_SCAN, data)

Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/light/hive.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,5 +137,5 @@ def supported_features(self):
return supported_features

def update(self):
"""Update all Node data frome Hive."""
"""Update all Node data from Hive."""
self.session.core.update_data(self.node_id)
2 changes: 1 addition & 1 deletion homeassistant/components/light/insteon_plm.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def get_attr(self, key):
@callback
def async_light_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
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/light/mochad.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def __init__(self, hass, ctrl, dev):

@property
def brightness(self):
"""Return the birghtness of this light between 0..255."""
"""Return the brightness of this light between 0..255."""
return self._brightness

def _get_device_status(self):
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/lirc.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
LIRC interface to receive signals from a infrared remote control.
LIRC interface to receive signals from an infrared remote control.

For more details about this component, please refer to the documentation at
https://home-assistant.io/components/lirc/
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/mailbox/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def async_update(self):


class Mailbox(object):
"""Represent an mailbox device."""
"""Represent a mailbox device."""

def __init__(self, hass, name):
"""Initialize mailbox object."""
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/media_player/anthemav.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def async_setup_platform(hass, config, async_add_devices, discovery_info=None):

def async_anthemav_update_callback(message):
"""Receive notification from transport that new data exists."""
_LOGGER.info("Received update calback from AVR: %s", message)
_LOGGER.info("Received update callback from AVR: %s", message)
hass.async_add_job(device.async_update_ha_state())

avr = yield from anthemav.Connection.create(
Expand Down
4 changes: 2 additions & 2 deletions homeassistant/components/media_player/bluesound.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,10 +150,10 @@ def __init__(self, hass, host, port=None, name=None, init_callback=None):
self._port = DEFAULT_PORT

@staticmethod
def _try_get_index(string, seach_string):
def _try_get_index(string, search_string):
"""Get the index."""
try:
return string.index(seach_string)
return string.index(search_string)
except ValueError:
return -1

Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/media_player/cmus.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def update(self):
"""Get the latest data and update the state."""
status = self.cmus.get_status_dict()
if not status:
_LOGGER.warning("Recieved no status from cmus")
_LOGGER.warning("Received no status from cmus")
else:
self.status = status

Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/media_player/denon.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def telnet_request(cls, telnet, command, all_lines=False):
if not line:
break
lines.append(line.decode('ASCII').strip())
_LOGGER.debug("Recived: %s", line)
_LOGGER.debug("Received: %s", line)

if all_lines:
return lines
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/media_player/monoprice.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def service_handle(service):


class MonopriceZone(MediaPlayerDevice):
"""Representation of a a Monoprice amplifier zone."""
"""Representation of a Monoprice amplifier zone."""

def __init__(self, monoprice, sources, zone_id, zone_name):
"""Initialize new zone."""
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/media_player/squeezebox.py
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ def _play_uri(self, media_id):
return self.async_query('playlist', 'play', media_id)

def _add_uri_to_playlist(self, media_id):
"""Add a items to the existing playlist."""
"""Add an item to the existing playlist."""
return self.async_query('playlist', 'add', media_id)

def async_set_shuffle(self, shuffle):
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/microsoft_face.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ def update_store(self):
@asyncio.coroutine
def call_api(self, method, function, data=None, binary=False,
params=None):
"""Make a api call."""
"""Make an api call."""
headers = {"Ocp-Apim-Subscription-Key": self._api_key}
url = self._server_url.format(function)

Expand Down
Loading