Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.netgear.entity.NetgearDeviceEntity Class Reference
Inheritance diagram for homeassistant.components.netgear.entity.NetgearDeviceEntity:
[legend]
Collaboration diagram for homeassistant.components.netgear.entity.NetgearDeviceEntity:
[legend]

Public Member Functions

None __init__ (self, DataUpdateCoordinator coordinator, NetgearRouter router, dict device)
 
None async_update_device (self)
 
def get_device_name (self)
 
- Public Member Functions inherited from homeassistant.helpers.update_coordinator.CoordinatorEntity
None __init__ (self, _DataUpdateCoordinatorT coordinator, Any context=None)
 
None async_update (self)
 
bool available (self)
 

Private Member Functions

None _handle_coordinator_update (self)
 

Private Attributes

 _active
 
 _attr_device_info
 
 _attr_unique_id
 
 _device
 
 _device_name
 
 _mac
 
 _router
 

Static Private Attributes

bool _attr_has_entity_name = True
 

Detailed Description

Base class for a device connected to a Netgear router.

Definition at line 21 of file entity.py.

Constructor & Destructor Documentation

◆ __init__()

None homeassistant.components.netgear.entity.NetgearDeviceEntity.__init__ (   self,
DataUpdateCoordinator  coordinator,
NetgearRouter  router,
dict   device 
)
Initialize a Netgear device.

Reimplemented in homeassistant.components.netgear.device_tracker.NetgearScannerEntity.

Definition at line 26 of file entity.py.

Member Function Documentation

◆ _handle_coordinator_update()

None homeassistant.components.netgear.entity.NetgearDeviceEntity._handle_coordinator_update (   self)
private
Handle updated data from the coordinator.

Definition at line 58 of file entity.py.

◆ async_update_device()

None homeassistant.components.netgear.entity.NetgearDeviceEntity.async_update_device (   self)

◆ get_device_name()

def homeassistant.components.netgear.entity.NetgearDeviceEntity.get_device_name (   self)
Return the name of the given device or the MAC if we don't know.

Definition at line 44 of file entity.py.

Member Data Documentation

◆ _active

homeassistant.components.netgear.entity.NetgearDeviceEntity._active
private

Definition at line 35 of file entity.py.

◆ _attr_device_info

homeassistant.components.netgear.entity.NetgearDeviceEntity._attr_device_info
private

Definition at line 37 of file entity.py.

◆ _attr_has_entity_name

bool homeassistant.components.netgear.entity.NetgearDeviceEntity._attr_has_entity_name = True
staticprivate

Definition at line 24 of file entity.py.

◆ _attr_unique_id

homeassistant.components.netgear.entity.NetgearDeviceEntity._attr_unique_id
private

Definition at line 36 of file entity.py.

◆ _device

homeassistant.components.netgear.entity.NetgearDeviceEntity._device
private

Definition at line 32 of file entity.py.

◆ _device_name

homeassistant.components.netgear.entity.NetgearDeviceEntity._device_name
private

Definition at line 34 of file entity.py.

◆ _mac

homeassistant.components.netgear.entity.NetgearDeviceEntity._mac
private

Definition at line 33 of file entity.py.

◆ _router

homeassistant.components.netgear.entity.NetgearDeviceEntity._router
private

Definition at line 31 of file entity.py.


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