Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.nasweb.switch.RelaySwitch Class Reference
Inheritance diagram for homeassistant.components.nasweb.switch.RelaySwitch:
[legend]
Collaboration diagram for homeassistant.components.nasweb.switch.RelaySwitch:
[legend]

Public Member Functions

None __init__ (self, BaseDataUpdateCoordinatorProtocol coordinator, NASwebOutput nasweb_output)
 
None async_added_to_hass (self)
 
None async_turn_off (self, **Any kwargs)
 
None async_turn_on (self, **Any kwargs)
 
None async_update (self)
 

Private Member Functions

None _handle_coordinator_update (self)
 

Private Attributes

 _attr_available
 
 _attr_device_info
 
 _attr_has_entity_name
 
 _attr_icon
 
 _attr_is_on
 
 _attr_translation_key
 
 _attr_translation_placeholders
 
 _attr_unique_id
 
 _output
 

Detailed Description

Entity representing NASweb Output.

Definition at line 78 of file switch.py.

Constructor & Destructor Documentation

◆ __init__()

None homeassistant.components.nasweb.switch.RelaySwitch.__init__ (   self,
BaseDataUpdateCoordinatorProtocol  coordinator,
NASwebOutput  nasweb_output 
)
Initialize RelaySwitch.

Definition at line 81 of file switch.py.

Member Function Documentation

◆ _handle_coordinator_update()

None homeassistant.components.nasweb.switch.RelaySwitch._handle_coordinator_update (   self)
private
Handle updated data from the coordinator.

Definition at line 106 of file switch.py.

◆ async_added_to_hass()

None homeassistant.components.nasweb.switch.RelaySwitch.async_added_to_hass (   self)
When entity is added to hass.

Definition at line 100 of file switch.py.

◆ async_turn_off()

None homeassistant.components.nasweb.switch.RelaySwitch.async_turn_off (   self,
**Any  kwargs 
)
Turn Off RelaySwitch.

Definition at line 131 of file switch.py.

◆ async_turn_on()

None homeassistant.components.nasweb.switch.RelaySwitch.async_turn_on (   self,
**Any  kwargs 
)
Turn On RelaySwitch.

Definition at line 127 of file switch.py.

◆ async_update()

None homeassistant.components.nasweb.switch.RelaySwitch.async_update (   self)
Update the entity.

Only used by the generic entity update service.
Scheduling updates is not necessary, the coordinator takes care of updates via push notifications.

Definition at line 120 of file switch.py.

Member Data Documentation

◆ _attr_available

homeassistant.components.nasweb.switch.RelaySwitch._attr_available
private

Definition at line 113 of file switch.py.

◆ _attr_device_info

homeassistant.components.nasweb.switch.RelaySwitch._attr_device_info
private

Definition at line 96 of file switch.py.

◆ _attr_has_entity_name

homeassistant.components.nasweb.switch.RelaySwitch._attr_has_entity_name
private

Definition at line 90 of file switch.py.

◆ _attr_icon

homeassistant.components.nasweb.switch.RelaySwitch._attr_icon
private

Definition at line 89 of file switch.py.

◆ _attr_is_on

homeassistant.components.nasweb.switch.RelaySwitch._attr_is_on
private

Definition at line 108 of file switch.py.

◆ _attr_translation_key

homeassistant.components.nasweb.switch.RelaySwitch._attr_translation_key
private

Definition at line 91 of file switch.py.

◆ _attr_translation_placeholders

homeassistant.components.nasweb.switch.RelaySwitch._attr_translation_placeholders
private

Definition at line 92 of file switch.py.

◆ _attr_unique_id

homeassistant.components.nasweb.switch.RelaySwitch._attr_unique_id
private

Definition at line 93 of file switch.py.

◆ _output

homeassistant.components.nasweb.switch.RelaySwitch._output
private

Definition at line 88 of file switch.py.


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