Spelling, grammar etc fixes (#14432)

* Spelling, grammar etc fixes

* s/an api data/data of an api/
pull/14447/head
Ville Skyttä 2018-05-13 12:09:28 +02:00 committed by Martin Hjelmare
parent 843789528e
commit 234bf1f0ea
15 changed files with 20 additions and 20 deletions

View File

@ -27,7 +27,7 @@ activate_air_conditioning:
description: >
Start the air conditioning of the vehicle. What exactly is started here
depends on the type of vehicle. It might range from just ventilation over
auxilary heating to real air conditioning. The vehicle is identified via
auxiliary heating to real air conditioning. The vehicle is identified via
the vin (see below).
fields:
vin:
@ -39,4 +39,4 @@ update_state:
description: >
Fetch the last state of the vehicles of all your accounts from the BMW
server. This does *not* trigger an update from the vehicle, it just gets
the data from the BMW servers. This service does not require any attributes.
the data from the BMW servers. This service does not require any attributes.

View File

@ -33,7 +33,7 @@ def _api_bool(funct):
def _api_data(funct):
"""Return a api data."""
"""Return data of an api."""
@asyncio.coroutine
def _wrapper(*argv, **kwargs):
"""Wrap function."""

View File

@ -21,7 +21,7 @@ def validate_entity_config(values):
params = {}
if not isinstance(config, dict):
raise vol.Invalid('The configuration for "{}" must be '
' an dictionary.'.format(entity))
' a dictionary.'.format(entity))
for key in (CONF_NAME, ):
value = config.get(key, -1)

View File

@ -14,7 +14,7 @@ delete_all_link:
description: All-Link group number.
example: 1
load_all_link_database:
description: Load the All-Link Database for a device. WARNING - Loading a device All-LInk database is very time consuming and inconsistant. This may take a LONG time and may need to be repeated to obtain all records.
description: Load the All-Link Database for a device. WARNING - Loading a device All-LInk database is very time consuming and inconsistent. This may take a LONG time and may need to be repeated to obtain all records.
fields:
entity_id:
description: Name of the device to print

View File

@ -222,7 +222,7 @@ class YamahaDevice(MediaPlayerDevice):
@property
def zone_id(self):
"""Return an zone_id to ensure 1 media player per zone."""
"""Return a zone_id to ensure 1 media player per zone."""
return '{0}:{1}'.format(self.receiver.ctrl_url, self._zone)
@property

View File

@ -197,7 +197,7 @@ class BrSensor(Entity):
def uid(self, coordinates):
"""Generate a unique id using coordinates and sensor type."""
# The combination of the location, name an sensor type is unique
# The combination of the location, name and sensor type is unique
return "%2.6f%2.6f%s" % (coordinates[CONF_LATITUDE],
coordinates[CONF_LONGITUDE],
self.type)

View File

@ -70,7 +70,7 @@ class HiveSensorEntity(Entity):
return DEVICETYPE_ICONS.get(self.device_type)
def update(self):
"""Update all Node data frome Hive."""
"""Update all Node data from Hive."""
if self.session.core.update_data(self.node_id):
for entity in self.session.entities:
entity.handle_update(self.data_updatesource)

View File

@ -156,7 +156,7 @@ class StatisticsSensor(Entity):
ATTR_CHANGE: self.change,
ATTR_AVERAGE_CHANGE: self.average_change,
}
# Only return min/max age if we have a age span
# Only return min/max age if we have an age span
if self._max_age:
state.update({
ATTR_MAX_AGE: self.max_age,

View File

@ -1,7 +1,7 @@
"""
Support for Tahoma Switch - those are push buttons for garage door etc.
Those buttons are implemented as switchs that are never on. They only
Those buttons are implemented as switches that are never on. They only
receive the turn_on action, perform the relay click, and stay in OFF state
For more details about this platform, please refer to the documentation at
@ -19,7 +19,7 @@ _LOGGER = logging.getLogger(__name__)
def setup_platform(hass, config, add_devices, discovery_info=None):
"""Set up Tahoma switchs."""
"""Set up Tahoma switches."""
controller = hass.data[TAHOMA_DOMAIN]['controller']
devices = []
for switch in hass.data[TAHOMA_DOMAIN]['devices']['switch']:

View File

@ -96,7 +96,7 @@ async def test_switch_set_state(hass):
@pytest.mark.parametrize('config', [{}, {ATTR_CODE: None}])
async def test_no_alarm_code(hass, config):
"""Test accessory if security_system doesn't require a alarm_code."""
"""Test accessory if security_system doesn't require an alarm_code."""
entity_id = 'alarm_control_panel.test'
hass.states.async_set(entity_id, None)

View File

@ -14,7 +14,7 @@ from homeassistant.components.media_player.blackbird import (
class AttrDict(dict):
"""Helper clas for mocking attributes."""
"""Helper class for mocking attributes."""
def __setattr__(self, name, value):
"""Set attribute."""

View File

@ -38,7 +38,7 @@ class TestSigfoxSensor(unittest.TestCase):
self.hass.stop()
def test_invalid_credentials(self):
"""Test for a invalid credentials."""
"""Test for invalid credentials."""
with requests_mock.Mocker() as mock_req:
url = re.compile(API_URL + 'devicetypes')
mock_req.get(url, text='{}', status_code=401)
@ -47,7 +47,7 @@ class TestSigfoxSensor(unittest.TestCase):
assert len(self.hass.states.entity_ids()) == 0
def test_valid_credentials(self):
"""Test for a valid credentials."""
"""Test for valid credentials."""
with requests_mock.Mocker() as mock_req:
url1 = re.compile(API_URL + 'devicetypes')
mock_req.get(url1, text='{"data":[{"id":"fake_type"}]}',

View File

@ -8,7 +8,7 @@ from tests.common import MockDependency
async def test_invalid_path_setup(hass):
"""Test that a invalid path is not setup."""
"""Test that an invalid path is not setup."""
assert not await async_setup_component(
hass, folder_watcher.DOMAIN, {
folder_watcher.DOMAIN: {

View File

@ -8,7 +8,7 @@ import homeassistant.components.prometheus as prometheus
@pytest.fixture
def prometheus_client(loop, hass, aiohttp_client):
"""Initialize a aiohttp_client with Prometheus component."""
"""Initialize an aiohttp_client with Prometheus component."""
assert loop.run_until_complete(async_setup_component(
hass,
prometheus.DOMAIN,

View File

@ -375,7 +375,7 @@ class TestEventBus(unittest.TestCase):
self.assertEqual(1, len(runs))
def test_thread_event_listener(self):
"""Test a event listener listeners."""
"""Test thread event listener."""
thread_calls = []
def thread_listener(event):
@ -387,7 +387,7 @@ class TestEventBus(unittest.TestCase):
assert len(thread_calls) == 1
def test_callback_event_listener(self):
"""Test a event listener listeners."""
"""Test callback event listener."""
callback_calls = []
@ha.callback
@ -400,7 +400,7 @@ class TestEventBus(unittest.TestCase):
assert len(callback_calls) == 1
def test_coroutine_event_listener(self):
"""Test a event listener listeners."""
"""Test coroutine event listener."""
coroutine_calls = []
@asyncio.coroutine