Update __init__.py

This commit is contained in:
Daniël Koek 2024-03-26 18:55:38 +00:00
parent e1c117c6a4
commit 2ca1b6aa09

View file

@ -7,7 +7,7 @@ LoraSwitch = lora_ns.class_("LoraSwitch", switch.Switch, cg.Component)
PIN_TO_SEND = "pin_to_send"
CONFIG_SCHEMA = (
switch.switch_schema(LoraSwitch, block_inverted=True)
switch.switch_schema(LoraSwitch)
.extend(
{
cv.Required(CONF_LORA): cv.use_id(LoraComponent),