Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.switchbee.entity Namespace Reference

Classes

class  SwitchBeeDeviceEntity
 
class  SwitchBeeEntity
 

Functions

None __init__ (self, _DeviceTypeT device, SwitchBeeCoordinator coordinator)
 
None _check_if_became_offline (self)
 
None _check_if_became_online (self)
 
_DeviceTypeT _get_coordinator_device (self)
 
bool available (self)
 

Variables

 _attr_device_info
 
bool _attr_has_entity_name = True
 
 _attr_name
 
 _attr_unique_id
 
 _device
 
 _is_online
 
 _LOGGER = logging.getLogger(__name__)
 

Detailed Description

Support for SwitchBee entity.

Function Documentation

◆ __init__()

None homeassistant.components.switchbee.entity.__init__ (   self,
_DeviceTypeT  device,
SwitchBeeCoordinator  coordinator 
)
Initialize the Switchbee entity.
Representation of a Switchbee device entity.
Initialize the Switchbee device.

Definition at line 25 of file entity.py.

◆ _check_if_became_offline()

None homeassistant.components.switchbee.entity._check_if_became_offline (   self)
private
Check if the device was online (now offline), log message and mark it as Unavailable.

Definition at line 75 of file entity.py.

◆ _check_if_became_online()

None homeassistant.components.switchbee.entity._check_if_became_online (   self)
private
Check if the device was offline (now online) and bring it back.

Definition at line 88 of file entity.py.

◆ _get_coordinator_device()

_DeviceTypeT homeassistant.components.switchbee.entity._get_coordinator_device (   self)
private

Definition at line 97 of file entity.py.

◆ available()

bool homeassistant.components.switchbee.entity.available (   self)
Return True if entity is available.

Definition at line 71 of file entity.py.

Variable Documentation

◆ _attr_device_info

homeassistant.components.switchbee.entity._attr_device_info
private

Definition at line 53 of file entity.py.

◆ _attr_has_entity_name

bool homeassistant.components.switchbee.entity._attr_has_entity_name = True
private
Representation of a Switchbee entity.

Definition at line 23 of file entity.py.

◆ _attr_name

homeassistant.components.switchbee.entity._attr_name
private

Definition at line 33 of file entity.py.

◆ _attr_unique_id

homeassistant.components.switchbee.entity._attr_unique_id
private

Definition at line 34 of file entity.py.

◆ _device

homeassistant.components.switchbee.entity._device
private

Definition at line 32 of file entity.py.

◆ _is_online

homeassistant.components.switchbee.entity._is_online
private

Definition at line 86 of file entity.py.

◆ _LOGGER

homeassistant.components.switchbee.entity._LOGGER = logging.getLogger(__name__)
private

Definition at line 15 of file entity.py.