Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.goodwe.button Namespace Reference

Classes

class  GoodweButtonEntity
 
class  GoodweButtonEntityDescription
 

Functions

None async_setup_entry (HomeAssistant hass, ConfigEntry config_entry, AddEntitiesCallback async_add_entities)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
 SYNCHRONIZE_CLOCK
 

Detailed Description

GoodWe PV inverter selection settings entities.

Function Documentation

◆ async_setup_entry()

None homeassistant.components.goodwe.button.async_setup_entry ( HomeAssistant  hass,
ConfigEntry  config_entry,
AddEntitiesCallback  async_add_entities 
)
Set up the inverter button entities from a config entry.

Definition at line 37 of file button.py.

Variable Documentation

◆ _LOGGER

homeassistant.components.goodwe.button._LOGGER = logging.getLogger(__name__)
private

Definition at line 19 of file button.py.

◆ SYNCHRONIZE_CLOCK

homeassistant.components.goodwe.button.SYNCHRONIZE_CLOCK
Initial value:
1 = GoodweButtonEntityDescription(
2  key="synchronize_clock",
3  translation_key="synchronize_clock",
4  entity_category=EntityCategory.CONFIG,
5  action=lambda inv: inv.write_setting("time", datetime.now()),
6 )

Definition at line 29 of file button.py.