mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 21:06:19 +00:00
Spelling fixes (#12041)
* Spelling fixes *Lots* of them. * Spelling breaking changes * Fix lint errors
This commit is contained in:
committed by
Fabian Affolter
parent
38fd9b65bf
commit
8dcfd35b8b
@@ -110,7 +110,7 @@ class TestSensorMQTT(unittest.TestCase):
|
||||
self.assertEqual('unknown', state.state)
|
||||
|
||||
def test_setting_sensor_value_via_mqtt_json_message(self):
|
||||
"""Test the setting of the value via MQTT with JSON playload."""
|
||||
"""Test the setting of the value via MQTT with JSON payload."""
|
||||
mock_component(self.hass, 'mqtt')
|
||||
assert setup_component(self.hass, sensor.DOMAIN, {
|
||||
sensor.DOMAIN: {
|
||||
@@ -244,7 +244,7 @@ class TestSensorMQTT(unittest.TestCase):
|
||||
self.hass.bus.fire(ha.EVENT_TIME_CHANGED, {ha.ATTR_NOW: now})
|
||||
|
||||
def test_setting_sensor_attribute_via_mqtt_json_message(self):
|
||||
"""Test the setting of attribute via MQTT with JSON playload."""
|
||||
"""Test the setting of attribute via MQTT with JSON payload."""
|
||||
mock_component(self.hass, 'mqtt')
|
||||
assert setup_component(self.hass, sensor.DOMAIN, {
|
||||
sensor.DOMAIN: {
|
||||
|
||||
@@ -18,7 +18,7 @@ class TestRandomSensor(unittest.TestCase):
|
||||
self.hass.stop()
|
||||
|
||||
def test_random_sensor(self):
|
||||
"""Test the Randowm number sensor."""
|
||||
"""Test the Random number sensor."""
|
||||
config = {
|
||||
'sensor': {
|
||||
'platform': 'random',
|
||||
|
||||
@@ -50,7 +50,7 @@ class TestRingSensorSetup(unittest.TestCase):
|
||||
|
||||
@requests_mock.Mocker()
|
||||
def test_sensor(self, mock):
|
||||
"""Test the Ring senskor class and methods."""
|
||||
"""Test the Ring sensor class and methods."""
|
||||
mock.post('https://api.ring.com/clients_api/session',
|
||||
text=load_fixture('ring_session.json'))
|
||||
mock.get('https://api.ring.com/clients_api/ring_devices',
|
||||
|
||||
@@ -73,7 +73,7 @@ class TestSeason(unittest.TestCase):
|
||||
"""Stop everything that was started."""
|
||||
self.hass.stop()
|
||||
|
||||
def test_season_should_be_summer_northern_astonomical(self):
|
||||
def test_season_should_be_summer_northern_astronomical(self):
|
||||
"""Test that season should be summer."""
|
||||
# A known day in summer
|
||||
summer_day = datetime(2017, 9, 3, 0, 0)
|
||||
@@ -91,7 +91,7 @@ class TestSeason(unittest.TestCase):
|
||||
self.assertEqual(season.STATE_SUMMER,
|
||||
current_season)
|
||||
|
||||
def test_season_should_be_autumn_northern_astonomical(self):
|
||||
def test_season_should_be_autumn_northern_astronomical(self):
|
||||
"""Test that season should be autumn."""
|
||||
# A known day in autumn
|
||||
autumn_day = datetime(2017, 9, 23, 0, 0)
|
||||
@@ -109,7 +109,7 @@ class TestSeason(unittest.TestCase):
|
||||
self.assertEqual(season.STATE_AUTUMN,
|
||||
current_season)
|
||||
|
||||
def test_season_should_be_winter_northern_astonomical(self):
|
||||
def test_season_should_be_winter_northern_astronomical(self):
|
||||
"""Test that season should be winter."""
|
||||
# A known day in winter
|
||||
winter_day = datetime(2017, 12, 25, 0, 0)
|
||||
@@ -127,7 +127,7 @@ class TestSeason(unittest.TestCase):
|
||||
self.assertEqual(season.STATE_WINTER,
|
||||
current_season)
|
||||
|
||||
def test_season_should_be_spring_northern_astonomical(self):
|
||||
def test_season_should_be_spring_northern_astronomical(self):
|
||||
"""Test that season should be spring."""
|
||||
# A known day in spring
|
||||
spring_day = datetime(2017, 4, 1, 0, 0)
|
||||
@@ -145,7 +145,7 @@ class TestSeason(unittest.TestCase):
|
||||
self.assertEqual(season.STATE_SPRING,
|
||||
current_season)
|
||||
|
||||
def test_season_should_be_winter_southern_astonomical(self):
|
||||
def test_season_should_be_winter_southern_astronomical(self):
|
||||
"""Test that season should be winter."""
|
||||
# A known day in winter
|
||||
winter_day = datetime(2017, 9, 3, 0, 0)
|
||||
@@ -163,7 +163,7 @@ class TestSeason(unittest.TestCase):
|
||||
self.assertEqual(season.STATE_WINTER,
|
||||
current_season)
|
||||
|
||||
def test_season_should_be_spring_southern_astonomical(self):
|
||||
def test_season_should_be_spring_southern_astronomical(self):
|
||||
"""Test that season should be spring."""
|
||||
# A known day in spring
|
||||
spring_day = datetime(2017, 9, 23, 0, 0)
|
||||
@@ -181,7 +181,7 @@ class TestSeason(unittest.TestCase):
|
||||
self.assertEqual(season.STATE_SPRING,
|
||||
current_season)
|
||||
|
||||
def test_season_should_be_summer_southern_astonomical(self):
|
||||
def test_season_should_be_summer_southern_astronomical(self):
|
||||
"""Test that season should be summer."""
|
||||
# A known day in summer
|
||||
summer_day = datetime(2017, 12, 25, 0, 0)
|
||||
@@ -199,7 +199,7 @@ class TestSeason(unittest.TestCase):
|
||||
self.assertEqual(season.STATE_SUMMER,
|
||||
current_season)
|
||||
|
||||
def test_season_should_be_autumn_southern_astonomical(self):
|
||||
def test_season_should_be_autumn_southern_astronomical(self):
|
||||
"""Test that season should be spring."""
|
||||
# A known day in spring
|
||||
autumn_day = datetime(2017, 4, 1, 0, 0)
|
||||
|
||||
Reference in New Issue
Block a user