Spelling fixes (#12041)
* Spelling fixes *Lots* of them. * Spelling breaking changes * Fix lint errors
This commit is contained in:
1 parent
38fd9b65bf
commit
8dcfd35b8b
138 files changed
+285
-286
No files matched your search
@@ -378,7 +378,7 @@ class TestComponentsDeviceTrackerASUSWRT(unittest.TestCase):
|
||||
telnet.login.assert_not_called()
|
||||
|
||||
def test_get_asuswrt_data(self):
|
||||
"""Test aususwrt data fetch."""
|
||||
"""Test asuswrt data fetch."""
|
||||
scanner = get_scanner(self.hass, VALID_CONFIG_ROUTER_SSH)
|
||||
scanner._get_wl = mock.Mock()
|
||||
scanner._get_arp = mock.Mock()
|
||||
|
||||
@@ -704,7 +704,7 @@ class TestComponentsDeviceTracker(unittest.TestCase):
|
||||
|
||||
@asyncio.coroutine
|
||||
def test_async_added_to_hass(hass):
|
||||
"""Test resoring state."""
|
||||
"""Test restoring state."""
|
||||
attr = {
|
||||
device_tracker.ATTR_LONGITUDE: 18,
|
||||
device_tracker.ATTR_LATITUDE: -33,
|
||||
|
||||
@@ -56,7 +56,7 @@ class TestComponentsDeviceTrackerMQTT(unittest.TestCase):
|
||||
def test_new_message(self):
|
||||
"""Test new message."""
|
||||
dev_id = 'paulus'
|
||||
enttiy_id = device_tracker.ENTITY_ID_FORMAT.format(dev_id)
|
||||
entity_id = device_tracker.ENTITY_ID_FORMAT.format(dev_id)
|
||||
topic = '/location/paulus'
|
||||
location = 'work'
|
||||
|
||||
@@ -69,4 +69,4 @@ class TestComponentsDeviceTrackerMQTT(unittest.TestCase):
|
||||
})
|
||||
fire_mqtt_message(self.hass, topic, location)
|
||||
self.hass.block_till_done()
|
||||
self.assertEqual(location, self.hass.states.get(enttiy_id).state)
|
||||
self.assertEqual(location, self.hass.states.get(entity_id).state)
|
||||
@@ -433,7 +433,7 @@ class TestDeviceTrackerOwnTracks(BaseMQTT):
|
||||
|
||||
def test_event_gps_entry_exit(self):
|
||||
"""Test the entry event."""
|
||||
# Entering the owntrack circular region named "inner"
|
||||
# Entering the owntracks circular region named "inner"
|
||||
self.send_message(EVENT_TOPIC, REGION_GPS_ENTER_MESSAGE)
|
||||
|
||||
# Enter uses the zone's gps co-ords
|
||||
@@ -447,7 +447,7 @@ class TestDeviceTrackerOwnTracks(BaseMQTT):
|
||||
# note that LOCATION_MESSAGE is actually pretty far
|
||||
# from INNER_ZONE and has good accuracy. I haven't
|
||||
# received a transition message though so I'm still
|
||||
# asssociated with the inner zone regardless of GPS.
|
||||
# associated with the inner zone regardless of GPS.
|
||||
self.assert_location_latitude(INNER_ZONE['latitude'])
|
||||
self.assert_location_accuracy(INNER_ZONE['radius'])
|
||||
self.assert_location_state('inner')
|
||||
@@ -624,7 +624,7 @@ class TestDeviceTrackerOwnTracks(BaseMQTT):
|
||||
def test_event_entry_zone_loading_dash(self):
|
||||
"""Test the event for zone landing."""
|
||||
# Make sure the leading - is ignored
|
||||
# Ownracks uses this to switch on hold
|
||||
# Owntracks uses this to switch on hold
|
||||
message = build_message(
|
||||
{'desc': "-inner"},
|
||||
REGION_GPS_ENTER_MESSAGE)
|
||||
@@ -673,10 +673,10 @@ class TestDeviceTrackerOwnTracks(BaseMQTT):
|
||||
|
||||
def test_event_source_type_entry_exit(self):
|
||||
"""Test the entry and exit events of source type."""
|
||||
# Entering the owntrack circular region named "inner"
|
||||
# Entering the owntracks circular region named "inner"
|
||||
self.send_message(EVENT_TOPIC, REGION_GPS_ENTER_MESSAGE)
|
||||
|
||||
# source_type should be gps when enterings using gps.
|
||||
# source_type should be gps when entering using gps.
|
||||
self.assert_location_source_type('gps')
|
||||
|
||||
# owntracks shouldn't send beacon events with acc = 0
|
||||
@@ -715,7 +715,7 @@ class TestDeviceTrackerOwnTracks(BaseMQTT):
|
||||
# note that LOCATION_MESSAGE is actually pretty far
|
||||
# from INNER_ZONE and has good accuracy. I haven't
|
||||
# received a transition message though so I'm still
|
||||
# asssociated with the inner zone regardless of GPS.
|
||||
# associated with the inner zone regardless of GPS.
|
||||
self.assert_location_latitude(INNER_ZONE['latitude'])
|
||||
self.assert_location_accuracy(INNER_ZONE['radius'])
|
||||
self.assert_location_state('inner')
|
||||
@@ -865,7 +865,7 @@ class TestDeviceTrackerOwnTracks(BaseMQTT):
|
||||
def test_event_beacon_entry_zone_loading_dash(self):
|
||||
"""Test the event for beacon zone landing."""
|
||||
# Make sure the leading - is ignored
|
||||
# Ownracks uses this to switch on hold
|
||||
# Owntracks uses this to switch on hold
|
||||
|
||||
message = build_message(
|
||||
{'desc': "-inner"},
|
||||
|
||||
Reference in new issue
Block a user