Grammar and spelling fixes (#16065)

This commit is contained in:
Ville Skyttä authored and Fabian Affolter committed 2018-08-19 22:29:08 +02:00
1 parent 9e1fa7ef42
commit dbd0763f83
244 files changed
+453 -453

No files matched your search

+1 -1
View File
@@ -43,7 +43,7 @@ async def async_setup(hass, config):
async def async_setup_entry(hass, entry):
"""Setup a config entry."""
"""Set up a config entry."""
return await hass.data[DOMAIN].async_setup_entry(entry)
@@ -1,5 +1,5 @@
"""
Counter for the days till a HTTPS (TLS) certificate will expire.
Counter for the days until an HTTPS (TLS) certificate will expire.
For more details about this sensor please refer to the documentation at
https://home-assistant.io/components/sensor.cert_expiry/
@@ -28,7 +28,7 @@ LAST_BILL_DAYS_BILLED = "last_bills_days_billed"
def setup_platform(hass, config, add_devices, discovery_info=None):
"""Setup all Duke Energy meters."""
"""Set up all Duke Energy meters."""
from pydukeenergy.api import DukeEnergy, DukeEnergyException
try:
@@ -36,7 +36,7 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
config[CONF_PASSWORD],
update_interval=120)
except DukeEnergyException:
_LOGGER.error("Failed to setup Duke Energy")
_LOGGER.error("Failed to set up Duke Energy")
return
add_devices([DukeEnergyMeter(meter) for meter in duke.get_meters()])
+1 -1
View File
@@ -151,7 +151,7 @@ class FinTsClient:
class FinTsAccount(Entity):
"""Sensor for a FinTS balanc account.
"""Sensor for a FinTS balance account.
A balance account contains an amount of money (=balance). The amount may
also be negative.
+2 -2
View File
@@ -31,7 +31,7 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
def setup_platform(hass, config, add_devices, discovery_info=None):
"""Setup the ihc sensor platform."""
"""Set up the IHC sensor platform."""
ihc_controller = hass.data[IHC_DATA][IHC_CONTROLLER]
info = hass.data[IHC_DATA][IHC_INFO]
devices = []
@@ -77,6 +77,6 @@ class IHCSensor(IHCDevice, Entity):
return self._unit_of_measurement
def on_ihc_change(self, ihc_id, value):
"""Callback when ihc resource changes."""
"""Callback when IHC resource changes."""
self._state = value
self.schedule_update_ha_state()
+1 -1
View File
@@ -16,7 +16,7 @@ _LOGGER = logging.getLogger(__name__)
def setup_platform(hass, config, add_devices, discovery_info=None):
"""Setup the melissa sensor platform."""
"""Set up the melissa sensor platform."""
sensors = []
api = hass.data[DATA_MELISSA]
devices = api.fetch_devices().values()
+1 -1
View File
@@ -164,7 +164,7 @@ def setup_platform(hass, config, add_entities, discovery_info=None):
data = PyNUTData(host, port, alias, username, password)
if data.status is None:
_LOGGER.error("NUT Sensor has no data, unable to setup")
_LOGGER.error("NUT Sensor has no data, unable to set up")
raise PlatformNotReady
_LOGGER.debug('NUT Sensors Available: %s', data.status)
+1 -1
View File
@@ -47,7 +47,7 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
def setup_platform(hass, config, add_devices, discovery_info=None):
"""Setup the sensor platform."""
"""Set up the sensor platform."""
from Adafruit_SHT31 import SHT31
i2c_address = config.get(CONF_I2C_ADDRESS)
+1 -1
View File
@@ -77,7 +77,7 @@ class SigfoxAPI:
_LOGGER.error(
"Unable to login to Sigfox API, error code %s", str(
response.status_code))
raise ValueError('Sigfox component not setup')
raise ValueError('Sigfox component not set up')
return True
def get_device_types(self):
+1 -1
View File
@@ -29,7 +29,7 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
def setup_platform(hass, config, add_devices, discovery_info=None):
"""Setting the platform in HASS and Case Information."""
"""Set up the platform in HASS and Case Information."""
uscis = UscisSensor(config['case_id'], config[CONF_FRIENDLY_NAME])
uscis.update()
if uscis.valid_case_id:
@@ -1,5 +1,5 @@
"""
Sensor support for Wirelss Sensor Tags platform.
Sensor support for Wireless Sensor Tags platform.
For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/sensor.wirelesstag/
@@ -58,7 +58,7 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
def setup_platform(hass, config, add_devices, discovery_info=None):
"""Setup the sensor platform."""
"""Set up the sensor platform."""
platform = hass.data.get(WIRELESSTAG_DOMAIN)
sensors = []
tags = platform.tags