Update docstrings (#7374)
* Update docstrings * Update docstrings * Update docstrings * Update docstrings * Update docstrings * Update docstrings * Update docstring * Update docstrings * Update docstrings * Fix lint issues * Update docstrings * Revert changes in dict
This commit is contained in:
parent
0e08925259
commit
a4f1f6e724
340 changed files with 1533 additions and 1708 deletions
|
@ -102,10 +102,9 @@ class HaveIBeenPwnedSensor(Entity):
|
|||
# data after hass startup once we have the data it will update as
|
||||
# normal using update
|
||||
if self._email not in self._data.data:
|
||||
track_point_in_time(self._hass,
|
||||
self.update_nothrottle,
|
||||
dt_util.now() +
|
||||
MIN_TIME_BETWEEN_FORCED_UPDATES)
|
||||
track_point_in_time(
|
||||
self._hass, self.update_nothrottle,
|
||||
dt_util.now() + MIN_TIME_BETWEEN_FORCED_UPDATES)
|
||||
return
|
||||
|
||||
if self._email in self._data.data:
|
||||
|
@ -153,7 +152,7 @@ class HaveIBeenPwnedData(object):
|
|||
allow_redirects=True, timeout=5)
|
||||
|
||||
except requests.exceptions.RequestException:
|
||||
_LOGGER.error("failed fetching HaveIBeenPwned Data for '%s'",
|
||||
_LOGGER.error("Failed fetching HaveIBeenPwned Data for %s",
|
||||
self._email)
|
||||
return
|
||||
|
||||
|
@ -174,6 +173,6 @@ class HaveIBeenPwnedData(object):
|
|||
self.set_next_email()
|
||||
|
||||
else:
|
||||
_LOGGER.error("failed fetching HaveIBeenPwned Data for '%s'"
|
||||
_LOGGER.error("Failed fetching HaveIBeenPwned Data for %s"
|
||||
"(HTTP Status_code = %d)", self._email,
|
||||
req.status_code)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue