Class for handling the data retrieval.
Definition at line 136 of file sensor.py.
◆ __init__()
| def homeassistant.components.haveibeenpwned.sensor.HaveIBeenPwnedData.__init__ |
( |
|
self, |
|
|
|
emails, |
|
|
|
api_key |
|
) |
| |
Initialize the data object.
Definition at line 139 of file sensor.py.
◆ set_next_email()
| def homeassistant.components.haveibeenpwned.sensor.HaveIBeenPwnedData.set_next_email |
( |
|
self | ) |
|
Set the next email to be looked up.
Definition at line 148 of file sensor.py.
◆ update()
| def homeassistant.components.haveibeenpwned.sensor.HaveIBeenPwnedData.update |
( |
|
self, |
|
|
** |
kwargs |
|
) |
| |
Get the latest data for current email from REST service.
Definition at line 158 of file sensor.py.
◆ update_no_throttle()
| def homeassistant.components.haveibeenpwned.sensor.HaveIBeenPwnedData.update_no_throttle |
( |
|
self | ) |
|
Get the data for a specific email.
Definition at line 153 of file sensor.py.
◆ _api_key
| homeassistant.components.haveibeenpwned.sensor.HaveIBeenPwnedData._api_key |
|
private |
◆ _current_index
| homeassistant.components.haveibeenpwned.sensor.HaveIBeenPwnedData._current_index |
|
private |
◆ _email
| homeassistant.components.haveibeenpwned.sensor.HaveIBeenPwnedData._email |
|
private |
◆ _email_count
| homeassistant.components.haveibeenpwned.sensor.HaveIBeenPwnedData._email_count |
|
private |
◆ _emails
| homeassistant.components.haveibeenpwned.sensor.HaveIBeenPwnedData._emails |
|
private |
◆ data
| homeassistant.components.haveibeenpwned.sensor.HaveIBeenPwnedData.data |
The documentation for this class was generated from the following file:
- core/homeassistant/components/haveibeenpwned/sensor.py