Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.nmap_tracker.device_tracker.NmapTrackerEntity Class Reference
Inheritance diagram for homeassistant.components.nmap_tracker.device_tracker.NmapTrackerEntity:
[legend]
Collaboration diagram for homeassistant.components.nmap_tracker.device_tracker.NmapTrackerEntity:
[legend]

Public Member Functions

None __init__ (self, NmapDeviceScanner nmap_tracker, str mac_address, bool active)
 
None async_added_to_hass (self)
 
None async_on_demand_update (self, bool online)
 
None async_process_update (self, bool online)
 
dict[str, Any] extra_state_attributes (self)
 
str|None hostname (self)
 
str ip_address (self)
 
bool is_connected (self)
 
str mac_address (self)
 
str name (self)
 
str unique_id (self)
 

Private Member Functions

NmapDevice _device (self)
 

Private Attributes

 _active
 
 _mac_address
 
 _nmap_tracker
 
 _tracked
 

Static Private Attributes

bool _attr_should_poll = False
 
string _attr_translation_key = "device_tracker"
 

Detailed Description

An Nmap Tracker entity.

Definition at line 46 of file device_tracker.py.

Constructor & Destructor Documentation

◆ __init__()

None homeassistant.components.nmap_tracker.device_tracker.NmapTrackerEntity.__init__ (   self,
NmapDeviceScanner  nmap_tracker,
str  mac_address,
bool   active 
)
Initialize an nmap tracker entity.

Definition at line 52 of file device_tracker.py.

Member Function Documentation

◆ _device()

NmapDevice homeassistant.components.nmap_tracker.device_tracker.NmapTrackerEntity._device (   self)
private
Get latest device state.

Definition at line 62 of file device_tracker.py.

◆ async_added_to_hass()

None homeassistant.components.nmap_tracker.device_tracker.NmapTrackerEntity.async_added_to_hass (   self)
Register state update callback.

Definition at line 119 of file device_tracker.py.

◆ async_on_demand_update()

None homeassistant.components.nmap_tracker.device_tracker.NmapTrackerEntity.async_on_demand_update (   self,
bool  online 
)
Update state.

Definition at line 114 of file device_tracker.py.

◆ async_process_update()

None homeassistant.components.nmap_tracker.device_tracker.NmapTrackerEntity.async_process_update (   self,
bool  online 
)
Update device.

Definition at line 99 of file device_tracker.py.

◆ extra_state_attributes()

dict[str, Any] homeassistant.components.nmap_tracker.device_tracker.NmapTrackerEntity.extra_state_attributes (   self)
Return the attributes.

Definition at line 104 of file device_tracker.py.

◆ hostname()

str | None homeassistant.components.nmap_tracker.device_tracker.NmapTrackerEntity.hostname (   self)
Return hostname of the device.

Definition at line 92 of file device_tracker.py.

◆ ip_address()

str homeassistant.components.nmap_tracker.device_tracker.NmapTrackerEntity.ip_address (   self)
Return the primary ip address of the device.

Definition at line 82 of file device_tracker.py.

◆ is_connected()

bool homeassistant.components.nmap_tracker.device_tracker.NmapTrackerEntity.is_connected (   self)
Return device status.

Definition at line 67 of file device_tracker.py.

◆ mac_address()

str homeassistant.components.nmap_tracker.device_tracker.NmapTrackerEntity.mac_address (   self)
Return the mac address of the device.

Definition at line 87 of file device_tracker.py.

◆ name()

str homeassistant.components.nmap_tracker.device_tracker.NmapTrackerEntity.name (   self)
Return device name.

Definition at line 72 of file device_tracker.py.

◆ unique_id()

str homeassistant.components.nmap_tracker.device_tracker.NmapTrackerEntity.unique_id (   self)
Return device unique id.

Definition at line 77 of file device_tracker.py.

Member Data Documentation

◆ _active

homeassistant.components.nmap_tracker.device_tracker.NmapTrackerEntity._active
private

Definition at line 59 of file device_tracker.py.

◆ _attr_should_poll

bool homeassistant.components.nmap_tracker.device_tracker.NmapTrackerEntity._attr_should_poll = False
staticprivate

Definition at line 49 of file device_tracker.py.

◆ _attr_translation_key

string homeassistant.components.nmap_tracker.device_tracker.NmapTrackerEntity._attr_translation_key = "device_tracker"
staticprivate

Definition at line 50 of file device_tracker.py.

◆ _mac_address

homeassistant.components.nmap_tracker.device_tracker.NmapTrackerEntity._mac_address
private

Definition at line 56 of file device_tracker.py.

◆ _nmap_tracker

homeassistant.components.nmap_tracker.device_tracker.NmapTrackerEntity._nmap_tracker
private

Definition at line 57 of file device_tracker.py.

◆ _tracked

homeassistant.components.nmap_tracker.device_tracker.NmapTrackerEntity._tracked
private

Definition at line 58 of file device_tracker.py.


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