feat: add native status bindings for hydraulic circuits and freshwater stations
This commit is contained in:
1 parent
984d9af232
commit
2407e09456
21 files changed
+1073
-974
No files matched your search
@@ -369,13 +369,14 @@ _CHARGING_STATION = {
|
||||
_FRESHWATER_STATION = {
|
||||
vol.Required("id"): _ID,
|
||||
vol.Required("name"): vol.All(str, vol.Length(max=100)),
|
||||
**{vol.Optional(key): _ENTITY_REF for key in ("flow", "return", "hot_water", "cold_water", "power")},
|
||||
**{vol.Optional(key): _ENTITY_REF for key in ("flow", "return", "hot_water", "cold_water", "power", "status")},
|
||||
vol.Optional("pump"): _HYDRONIC_CONTROL,
|
||||
vol.Optional("valve"): _HYDRONIC_CONTROL,
|
||||
vol.Optional("has_valve"): bool,
|
||||
}
|
||||
_HYDRONIC = {
|
||||
vol.Optional("card"): bool,
|
||||
vol.Optional("status"): _ENTITY_REF,
|
||||
vol.Optional("circuits"): vol.All(
|
||||
[
|
||||
{
|
||||
@@ -387,7 +388,7 @@ _HYDRONIC = {
|
||||
vol.Optional("valve_type"): vol.In(["mixing", "two_way"]),
|
||||
vol.Optional("pump"): _HYDRONIC_CONTROL,
|
||||
vol.Optional("valve"): _HYDRONIC_CONTROL,
|
||||
**{vol.Optional(key): _ENTITY_REF for key in ("flow", "return", "power", "mode_entity")},
|
||||
**{vol.Optional(key): _ENTITY_REF for key in ("flow", "return", "power", "mode_entity", "status")},
|
||||
vol.Optional("cooling_value"): vol.All(vol.Coerce(int), vol.Range(min=-2147483648, max=2147483647)),
|
||||
}
|
||||
],
|
||||
|
||||
Reference in new issue
Block a user