2020-12-28 22:29:00 -07:00
|
|
|
import bidict
|
|
|
|
|
|
|
|
from homeassistant.components.water_heater import (
|
|
|
|
SUPPORT_OPERATION_MODE,
|
|
|
|
SUPPORT_TARGET_TEMPERATURE
|
|
|
|
)
|
2020-12-29 15:01:29 -07:00
|
|
|
from gekitchensdk import ErdOvenCookMode
|
2020-12-28 22:29:00 -07:00
|
|
|
|
2020-12-29 17:32:48 -07:00
|
|
|
SUPPORT_NONE = 0
|
2020-12-28 22:29:00 -07:00
|
|
|
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"
|
2020-12-29 17:32:48 -07:00
|
|
|
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"
|
2020-12-28 22:29:00 -07:00
|
|
|
|
|
|
|
UPPER_OVEN = "UPPER_OVEN"
|
|
|
|
LOWER_OVEN = "LOWER_OVEN"
|
|
|
|
|
2020-12-29 16:29:43 -07:00
|
|
|
COOK_MODE_OP_MAP = bidict.bidict({
|
2020-12-28 22:29:00 -07:00
|
|
|
ErdOvenCookMode.NOMODE: OP_MODE_OFF,
|
|
|
|
ErdOvenCookMode.CONVMULTIBAKE_NOOPTION: OP_MODE_CONVMULTIBAKE,
|
|
|
|
ErdOvenCookMode.CONVBAKE_NOOPTION: OP_MODE_CONVBAKE,
|
|
|
|
ErdOvenCookMode.CONVROAST_NOOPTION: OP_MODE_CONVROAST,
|
2020-12-29 17:32:48 -07:00
|
|
|
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
|
2020-12-28 22:29:00 -07:00
|
|
|
})
|
|
|
|
|