mirror of
https://github.com/esphome/esphome.git
synced 2024-11-27 09:18:00 +01:00
Move and fix value for sleep mode constant, update tests
This commit is contained in:
parent
515fccb377
commit
61a282f7d3
7 changed files with 7 additions and 8 deletions
|
@ -10,6 +10,7 @@ airton_ns = cg.esphome_ns.namespace("airton")
|
|||
AirtonClimate = airton_ns.class_("AirtonClimate", climate_ir.ClimateIR)
|
||||
|
||||
CONF_AIRTON_ID = "airton_id"
|
||||
CONF_SLEEP_MODE = "sleep_mode"
|
||||
|
||||
CONFIG_SCHEMA = climate_ir.CLIMATE_IR_WITH_RECEIVER_SCHEMA.extend(
|
||||
{
|
||||
|
|
|
@ -3,12 +3,10 @@ from esphome.components import switch
|
|||
import esphome.config_validation as cv
|
||||
from esphome.const import CONF_DISPLAY, ENTITY_CATEGORY_CONFIG
|
||||
|
||||
from ..climate import CONF_AIRTON_ID, AirtonClimate, airton_ns
|
||||
from ..climate import CONF_AIRTON_ID, CONF_SLEEP_MODE, AirtonClimate, airton_ns
|
||||
|
||||
CODEOWNERS = ["@procsiab"]
|
||||
|
||||
CONF_SLEEP_MODE = "sleep"
|
||||
|
||||
SleepSwitch = airton_ns.class_("SleepSwitch", switch.Switch)
|
||||
DisplaySwitch = airton_ns.class_("DisplaySwitch", switch.Switch)
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@ sensor:
|
|||
|
||||
switch:
|
||||
- platform: airton
|
||||
sleep:
|
||||
sleep_mode:
|
||||
name: "sleep mode"
|
||||
display:
|
||||
name: "display light"
|
||||
|
|
|
@ -26,7 +26,7 @@ sensor:
|
|||
|
||||
switch:
|
||||
- platform: airton
|
||||
sleep:
|
||||
sleep_mode:
|
||||
name: "sleep mode"
|
||||
display:
|
||||
name: "display light"
|
||||
|
|
|
@ -26,7 +26,7 @@ sensor:
|
|||
|
||||
switch:
|
||||
- platform: airton
|
||||
sleep:
|
||||
sleep_mode:
|
||||
name: "sleep mode"
|
||||
display:
|
||||
name: "display light"
|
||||
|
|
|
@ -26,7 +26,7 @@ sensor:
|
|||
|
||||
switch:
|
||||
- platform: airton
|
||||
sleep:
|
||||
sleep_mode:
|
||||
name: "sleep mode"
|
||||
display:
|
||||
name: "display light"
|
||||
|
|
|
@ -26,7 +26,7 @@ sensor:
|
|||
|
||||
switch:
|
||||
- platform: airton
|
||||
sleep:
|
||||
sleep_mode:
|
||||
name: "sleep mode"
|
||||
display:
|
||||
name: "display light"
|
||||
|
|
Loading…
Reference in a new issue