Introduce PRESET_NONE for climate (#25360)
* Introduce PRESET_NONE for climate * Require preset mode to be a string * Lint * Fix tests
This commit is contained in:
1 parent
2228a0dcac
commit
c795c93034
18 files changed
+44
-38
No files matched your search
@@ -74,7 +74,7 @@ SET_FAN_MODE_SCHEMA = vol.Schema({
|
||||
})
|
||||
SET_PRESET_MODE_SCHEMA = vol.Schema({
|
||||
vol.Optional(ATTR_ENTITY_ID): cv.comp_entity_ids,
|
||||
vol.Required(ATTR_PRESET_MODE): vol.Maybe(cv.string),
|
||||
vol.Required(ATTR_PRESET_MODE): cv.string,
|
||||
})
|
||||
SET_HVAC_MODE_SCHEMA = vol.Schema({
|
||||
vol.Optional(ATTR_ENTITY_ID): cv.comp_entity_ids,
|
||||
|
||||
Reference in new issue
Block a user