mirror of
https://github.com/esphome/esphome.git
synced 2026-06-24 14:37:04 +00:00
[rotary_encoder] Fix set_value action accepting any sensor ID (#15535)
This commit is contained in:
@@ -120,7 +120,7 @@ async def to_code(config):
|
||||
RotaryEncoderSetValueAction,
|
||||
cv.Schema(
|
||||
{
|
||||
cv.Required(CONF_ID): cv.use_id(sensor.Sensor),
|
||||
cv.Required(CONF_ID): cv.use_id(RotaryEncoderSensor),
|
||||
cv.Required(CONF_VALUE): cv.templatable(cv.int_),
|
||||
}
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user