8static const char *
const TAG =
"output.float";
19 state = clamp(
state, 0.0f, 1.0f);
21#ifdef USE_POWER_SUPPLY
power_supply::PowerSupplyRequester power_
bool is_inverted() const
Return whether this binary output is inverted.
void set_level(float state)
Set the level of this float output, this is called from the front-end.
void set_max_power(float max_power)
Set the maximum power output of this component.
void write_state(bool state) override
Implement BinarySensor's write_enabled; this should never be called.
void set_min_power(float min_power)
Set the minimum power output of this component.
Providing packet encoding functions for exchanging data with a remote host.