feat: add oven capabilities and cycle-active gating
This commit is contained in:
1 parent
9cbeb6a2b2
commit
23d5090faa
5 files changed
+573
-4
No files matched your search
@@ -1,4 +1,4 @@
|
||||
from . import common, fridge, laundry, operational
|
||||
from . import common, fridge, laundry, operational, oven
|
||||
from ..capability import Capability
|
||||
|
||||
|
||||
@@ -6,5 +6,17 @@ def _is_capability(v):
|
||||
return isinstance(v, Capability)
|
||||
|
||||
|
||||
# Oven capabilities with hrefs unique to the oven family.
|
||||
# OVEN_OPERATIONAL_STATE (/operational/state/vs/0) and OVEN_DOOR
|
||||
# (/doors/vs/0) are intentionally excluded — those hrefs are already
|
||||
# covered by the shared OPERATIONAL_STATE and fridge DOORS_STATUS
|
||||
# capabilities. Oven-specific entities from those hrefs (cook_time,
|
||||
# door sensor) will be wired by oven-specific discovery in Task 13.
|
||||
_OVEN_GLOBAL_CAPS = [
|
||||
oven.OVEN_SETPOINT,
|
||||
oven.OVEN_CAVITY,
|
||||
oven.OVEN_MODE,
|
||||
]
|
||||
|
||||
ALL = [v for mod in (common, operational, laundry, fridge)
|
||||
for v in vars(mod).values() if _is_capability(v)]
|
||||
for v in vars(mod).values() if _is_capability(v)] + _OVEN_GLOBAL_CAPS
|
||||
Reference in new issue
Block a user