Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.shelly.valve Namespace Reference

Classes

class  BlockShellyValve
 
class  BlockValveDescription
 

Functions

None async_setup_block_entry (HomeAssistant hass, ShellyConfigEntry config_entry, AddEntitiesCallback async_add_entities)
 
None async_setup_entry (HomeAssistant hass, ShellyConfigEntry config_entry, AddEntitiesCallback async_add_entities)
 

Variables

 GAS_VALVE
 

Detailed Description

Valve for Shelly.

Function Documentation

◆ async_setup_block_entry()

None homeassistant.components.shelly.valve.async_setup_block_entry ( HomeAssistant  hass,
ShellyConfigEntry  config_entry,
AddEntitiesCallback  async_add_entities 
)
Set up valve for device.

Definition at line 53 of file valve.py.

◆ async_setup_entry()

None homeassistant.components.shelly.valve.async_setup_entry ( HomeAssistant  hass,
ShellyConfigEntry  config_entry,
AddEntitiesCallback  async_add_entities 
)
Set up valves for device.

Definition at line 42 of file valve.py.

Variable Documentation

◆ GAS_VALVE

homeassistant.components.shelly.valve.GAS_VALVE
Initial value:
1 = BlockValveDescription(
2  key="valve|valve",
3  name="Valve",
4  available=lambda block: block.valve not in ("failure", "checking"),
5  removal_condition=lambda _, block: block.valve in ("not_connected", "unknown"),
6 )

Definition at line 34 of file valve.py.