Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.fan.reproduce_state Namespace Reference

Functions

None _async_reproduce_state (HomeAssistant hass, State state, *Context|None context=None, dict[str, Any]|None reproduce_options=None)
 
None async_reproduce_states (HomeAssistant hass, Iterable[State] states, *Context|None context=None, dict[str, Any]|None reproduce_options=None)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
dictionary SIMPLE_ATTRIBUTES
 
dictionary SPEED_AND_MODE_ATTRIBUTES
 
dictionary VALID_STATES = {STATE_ON, STATE_OFF}
 

Detailed Description

Reproduce an Fan state.

Function Documentation

◆ _async_reproduce_state()

None homeassistant.components.fan.reproduce_state._async_reproduce_state ( HomeAssistant  hass,
State  state,
*Context | None   context = None,
dict[str, Any] | None   reproduce_options = None 
)
private
Reproduce a single state.

Definition at line 47 of file reproduce_state.py.

◆ async_reproduce_states()

None homeassistant.components.fan.reproduce_state.async_reproduce_states ( HomeAssistant  hass,
Iterable[State states,
*Context | None   context = None,
dict[str, Any] | None   reproduce_options = None 
)
Reproduce Fan states.

Definition at line 111 of file reproduce_state.py.

Variable Documentation

◆ _LOGGER

homeassistant.components.fan.reproduce_state._LOGGER = logging.getLogger(__name__)
private

Definition at line 31 of file reproduce_state.py.

◆ SIMPLE_ATTRIBUTES

dictionary homeassistant.components.fan.reproduce_state.SIMPLE_ATTRIBUTES
Initial value:
1 = { # attribute: service
2  ATTR_DIRECTION: SERVICE_SET_DIRECTION,
3  ATTR_OSCILLATING: SERVICE_OSCILLATE,
4 }

Definition at line 41 of file reproduce_state.py.

◆ SPEED_AND_MODE_ATTRIBUTES

dictionary homeassistant.components.fan.reproduce_state.SPEED_AND_MODE_ATTRIBUTES
Initial value:
1 = {
2  ATTR_PERCENTAGE: SERVICE_SET_PERCENTAGE,
3  ATTR_PRESET_MODE: SERVICE_SET_PRESET_MODE,
4 }

Definition at line 36 of file reproduce_state.py.

◆ VALID_STATES

dictionary homeassistant.components.fan.reproduce_state.VALID_STATES = {STATE_ON, STATE_OFF}

Definition at line 33 of file reproduce_state.py.