Get the latest data and update the states.
Definition at line 77 of file sensor.py.
◆ __init__()
| None homeassistant.components.shodan.sensor.ShodanData.__init__ |
( |
|
self, |
|
|
shodan.Shodan |
api, |
|
|
str |
query |
|
) |
| |
Initialize the data object.
Definition at line 80 of file sensor.py.
◆ update()
| def homeassistant.components.shodan.sensor.ShodanData.update |
( |
|
self | ) |
|
Get the latest data from shodan.io.
Definition at line 85 of file sensor.py.
◆ _api
| homeassistant.components.shodan.sensor.ShodanData._api |
|
private |
◆ _query
| homeassistant.components.shodan.sensor.ShodanData._query |
|
private |
The documentation for this class was generated from the following file:
- core/homeassistant/components/shodan/sensor.py