mirror of
https://github.com/esphome/esphome.git
synced 2026-10-03 17:55:57 +00:00
Fix restore (#4655)
* ALWAYS_OFF for fan * ALWAYS_OFF for light * ALWAYS_OFF for switch
This commit is contained in:
@@ -92,7 +92,7 @@ def switch_schema(
|
||||
device_class: str = _UNDEF,
|
||||
icon: str = _UNDEF,
|
||||
block_inverted: bool = False,
|
||||
default_restore_mode: str = "RESTORE_DEFAULT_OFF",
|
||||
default_restore_mode: str = "ALWAYS_OFF",
|
||||
):
|
||||
schema = _SWITCH_SCHEMA.extend(
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user