mirror of
https://github.com/esphome/esphome.git
synced 2025-10-28 13:43:54 +00:00
Fix restore (#4655)
* ALWAYS_OFF for fan * ALWAYS_OFF for light * ALWAYS_OFF for switch
This commit is contained in:
committed by
GitHub
parent
0547f2a931
commit
4eb69d6af5
@@ -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