(self, hass: HomeAssistant, config: Config, state: State)
Initialize a trait for a state.
Initialize a trait for a state.
Initialize a trait for a state .
def __init__(self, hass: HomeAssistant, config: Config, state: State):
        """Initialize a trait for a state."""
        self.hass = hass
        self.config = config
        self.state = state

        self.reportable = config.is_reporting_state
def __init__ ( self , hass : HomeAssistant , config : Config , state : State ) : self . hass = hass self . config = config self . state = state self . reportable = config . is_reporting_state