Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.dnsip.sensor Namespace Reference

Classes

class  WanIpSensor
 

Functions

None async_setup_entry (HomeAssistant hass, ConfigEntry entry, AddEntitiesCallback async_add_entities)
 
list sort_ips (list ips, str querytype)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
int DEFAULT_RETRIES = 2
 
int MAX_RESULTS = 10
 
 SCAN_INTERVAL = timedelta(seconds=120)
 

Detailed Description

Get your own public IP address or that of any host.

Function Documentation

◆ async_setup_entry()

None homeassistant.components.dnsip.sensor.async_setup_entry ( HomeAssistant  hass,
ConfigEntry  entry,
AddEntitiesCallback   async_add_entities 
)
Set up the dnsip sensor entry.

Definition at line 47 of file sensor.py.

◆ sort_ips()

list homeassistant.components.dnsip.sensor.sort_ips ( list  ips,
str  querytype 
)
Join IPs into a single string.

Definition at line 37 of file sensor.py.

Variable Documentation

◆ _LOGGER

homeassistant.components.dnsip.sensor._LOGGER = logging.getLogger(__name__)
private

Definition at line 32 of file sensor.py.

◆ DEFAULT_RETRIES

int homeassistant.components.dnsip.sensor.DEFAULT_RETRIES = 2

Definition at line 29 of file sensor.py.

◆ MAX_RESULTS

int homeassistant.components.dnsip.sensor.MAX_RESULTS = 10

Definition at line 30 of file sensor.py.

◆ SCAN_INTERVAL

homeassistant.components.dnsip.sensor.SCAN_INTERVAL = timedelta(seconds=120)

Definition at line 34 of file sensor.py.