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
@@ -242,7 +242,7 @@ class _Connection:
|
||||
return self._connected
|
||||
|
||||
def connect(self):
|
||||
"""Mark currenct connection state as connected."""
|
||||
"""Mark current connection state as connected."""
|
||||
self._connected = True
|
||||
|
||||
def disconnect(self):
|
||||
|
||||
@@ -119,7 +119,7 @@ class HuaweiDeviceScanner(DeviceScanner):
|
||||
cnt = requests.post('http://{}/asp/GetRandCount.asp'.format(self.host))
|
||||
cnt_str = str(cnt.content, cnt.apparent_encoding, errors='replace')
|
||||
|
||||
_LOGGER.debug("Loggin in")
|
||||
_LOGGER.debug("Logging in")
|
||||
cookie = requests.post('http://{}/login.cgi'.format(self.host),
|
||||
data=[('UserName', self.username),
|
||||
('PassWord', self.password),
|
||||
|
||||
@@ -46,8 +46,8 @@ def get_scanner(hass, config):
|
||||
return scanner if scanner.success_init else None
|
||||
|
||||
|
||||
def _refresh_on_acccess_denied(func):
|
||||
"""If remove rebooted, it lost our session so rebuld one and try again."""
|
||||
def _refresh_on_access_denied(func):
|
||||
"""If remove rebooted, it lost our session so rebuild one and try again."""
|
||||
def decorator(self, *args, **kwargs):
|
||||
"""Wrap the function to refresh session_id on PermissionError."""
|
||||
try:
|
||||
@@ -95,7 +95,7 @@ class UbusDeviceScanner(DeviceScanner):
|
||||
"""Must be implemented depending on the software."""
|
||||
raise NotImplementedError
|
||||
|
||||
@_refresh_on_acccess_denied
|
||||
@_refresh_on_access_denied
|
||||
def get_device_name(self, mac):
|
||||
"""Return the name of the given device or None if we don't know."""
|
||||
if self.mac2name is None:
|
||||
@@ -104,7 +104,7 @@ class UbusDeviceScanner(DeviceScanner):
|
||||
self.mac2name = None
|
||||
return name
|
||||
|
||||
@_refresh_on_acccess_denied
|
||||
@_refresh_on_access_denied
|
||||
def _update_info(self):
|
||||
"""Ensure the information from the router is up to date.
|
||||
|
||||
|
||||
Reference in new issue
Block a user