mirror of https://github.com/simbaja/ha_gehome.git
40 lines
1.3 KiB
Python
40 lines
1.3 KiB
Python
import bidict
|
|
|
|
from homeassistant.components.water_heater import (
|
|
SUPPORT_OPERATION_MODE,
|
|
SUPPORT_TARGET_TEMPERATURE
|
|
)
|
|
from gekitchensdk import ErdOvenCookMode
|
|
|
|
SUPPORT_NONE = 0
|
|
GE_OVEN_SUPPORT = (SUPPORT_OPERATION_MODE | SUPPORT_TARGET_TEMPERATURE)
|
|
|
|
OP_MODE_OFF = "Off"
|
|
OP_MODE_BAKE = "Bake"
|
|
OP_MODE_CONVMULTIBAKE = "Conv. Multi-Bake"
|
|
OP_MODE_CONVBAKE = "Convection Bake"
|
|
OP_MODE_CONVROAST = "Convection Roast"
|
|
OP_MODE_COOK_UNK = "Unknown"
|
|
OP_MODE_PIZZA = "Frozen Pizza"
|
|
OP_MODE_FROZEN_SNACKS = "Frozen Snacks"
|
|
OP_MODE_BAKED_GOODS = "Baked Goods"
|
|
OP_MODE_FROZEN_PIZZA_MULTI = "Frozen Pizza Multi"
|
|
OP_MODE_FROZEN_SNACKS_MULTI = "Frozen Snacks Multi"
|
|
|
|
UPPER_OVEN = "UPPER_OVEN"
|
|
LOWER_OVEN = "LOWER_OVEN"
|
|
|
|
COOK_MODE_OP_MAP = bidict.bidict({
|
|
ErdOvenCookMode.NOMODE: OP_MODE_OFF,
|
|
ErdOvenCookMode.CONVMULTIBAKE_NOOPTION: OP_MODE_CONVMULTIBAKE,
|
|
ErdOvenCookMode.CONVBAKE_NOOPTION: OP_MODE_CONVBAKE,
|
|
ErdOvenCookMode.CONVROAST_NOOPTION: OP_MODE_CONVROAST,
|
|
ErdOvenCookMode.BAKE_NOOPTION: OP_MODE_BAKE,
|
|
ErdOvenCookMode.FROZEN_PIZZA: OP_MODE_PIZZA,
|
|
ErdOvenCookMode.FROZEN_SNACKS: OP_MODE_FROZEN_SNACKS,
|
|
ErdOvenCookMode.BAKED_GOODS: OP_MODE_BAKED_GOODS,
|
|
ErdOvenCookMode.FROZEN_PIZZA_MULTI: OP_MODE_FROZEN_PIZZA_MULTI,
|
|
ErdOvenCookMode.FROZEN_SNACKS_MULTI: OP_MODE_FROZEN_SNACKS_MULTI
|
|
})
|
|
|