Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.axis.hub.hub.AxisHub Class Reference

Public Member Functions

None __init__ (self, HomeAssistant hass, AxisConfigEntry config_entry, axis.AxisDevice api)
 
None async_update_device_registry (self)
 
bool available (self)
 
None setup (self)
 
None shutdown (self, Event event)
 
str signal_new_address (self)
 
str signal_reachable (self)
 
None teardown (self)
 

Static Public Member Functions

None async_new_address_callback (HomeAssistant hass, AxisConfigEntry config_entry)
 

Public Attributes

 api
 
 config
 
 entity_loader
 
 event_source
 
 fw_version
 
 hass
 
 product_type
 
 unique_id
 

Detailed Description

Manages a Axis device.

Definition at line 23 of file hub.py.

Constructor & Destructor Documentation

◆ __init__()

None homeassistant.components.axis.hub.hub.AxisHub.__init__ (   self,
HomeAssistant  hass,
AxisConfigEntry  config_entry,
axis.AxisDevice   api 
)
Initialize the device.

Definition at line 26 of file hub.py.

Member Function Documentation

◆ async_new_address_callback()

None homeassistant.components.axis.hub.hub.AxisHub.async_new_address_callback ( HomeAssistant  hass,
AxisConfigEntry   config_entry 
)
static
Handle signals of device getting new address.

Called when config entry is updated.
This is a static method because a class method (bound method),
cannot be used with weak references.

Definition at line 60 of file hub.py.

◆ async_update_device_registry()

None homeassistant.components.axis.hub.hub.AxisHub.async_update_device_registry (   self)
Update device registry.

Definition at line 75 of file hub.py.

◆ available()

bool homeassistant.components.axis.hub.hub.AxisHub.available (   self)
Connection state to the device.

Definition at line 43 of file hub.py.

◆ setup()

None homeassistant.components.axis.hub.hub.AxisHub.setup (   self)
Set up the device events.

Definition at line 92 of file hub.py.

◆ shutdown()

None homeassistant.components.axis.hub.hub.AxisHub.shutdown (   self,
Event  event 
)
Stop the event stream.

Definition at line 97 of file hub.py.

◆ signal_new_address()

str homeassistant.components.axis.hub.hub.AxisHub.signal_new_address (   self)
Device specific event to signal a change in device address.

Definition at line 55 of file hub.py.

◆ signal_reachable()

str homeassistant.components.axis.hub.hub.AxisHub.signal_reachable (   self)
Device specific event to signal a change in connection status.

Definition at line 50 of file hub.py.

◆ teardown()

None homeassistant.components.axis.hub.hub.AxisHub.teardown (   self)
Reset this device to default state.

Definition at line 102 of file hub.py.

Member Data Documentation

◆ api

homeassistant.components.axis.hub.hub.AxisHub.api

Definition at line 34 of file hub.py.

◆ config

homeassistant.components.axis.hub.hub.AxisHub.config

Definition at line 31 of file hub.py.

◆ entity_loader

homeassistant.components.axis.hub.hub.AxisHub.entity_loader

Definition at line 32 of file hub.py.

◆ event_source

homeassistant.components.axis.hub.hub.AxisHub.event_source

Definition at line 33 of file hub.py.

◆ fw_version

homeassistant.components.axis.hub.hub.AxisHub.fw_version

Definition at line 36 of file hub.py.

◆ hass

homeassistant.components.axis.hub.hub.AxisHub.hass

Definition at line 30 of file hub.py.

◆ product_type

homeassistant.components.axis.hub.hub.AxisHub.product_type

Definition at line 37 of file hub.py.

◆ unique_id

homeassistant.components.axis.hub.hub.AxisHub.unique_id

Definition at line 38 of file hub.py.


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