Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.shodan.sensor.ShodanData Class Reference

Public Member Functions

None __init__ (self, shodan.Shodan api, str query)
 
def update (self)
 

Private Attributes

 _api
 
 _query
 

Detailed Description

Get the latest data and update the states.

Definition at line 77 of file sensor.py.

Constructor & Destructor Documentation

◆ __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.

Member Function Documentation

◆ update()

def homeassistant.components.shodan.sensor.ShodanData.update (   self)
Get the latest data from shodan.io.

Definition at line 85 of file sensor.py.

Member Data Documentation

◆ _api

homeassistant.components.shodan.sensor.ShodanData._api
private

Definition at line 82 of file sensor.py.

◆ _query

homeassistant.components.shodan.sensor.ShodanData._query
private

Definition at line 83 of file sensor.py.


The documentation for this class was generated from the following file: