Updated oven #27

Merged
MiguelAngelLV merged 6 commits from main into main 2023-04-19 20:32:26 +02:00
5 changed files with 14 additions and 20 deletions
Showing only changes of commit 7d3813b8fd - Show all commits

View File

@ -14,18 +14,6 @@ from .hon import HonCoordinator, HonEntity
_LOGGER = logging.getLogger(__name__) _LOGGER = logging.getLogger(__name__)
BUTTONS: dict[str, tuple[ButtonEntityDescription, ...]] = { BUTTONS: dict[str, tuple[ButtonEntityDescription, ...]] = {
"OV": (
ButtonEntityDescription(
key="startProgram",
name="Start Program",
icon="mdi:power-cycle",
),
ButtonEntityDescription(
key="stopProgram",
name="Stop Program",
icon="mdi:power-off",
),
),
"IV": ( "IV": (
ButtonEntityDescription( ButtonEntityDescription(
key="startProgram", key="startProgram",

View File

@ -6,6 +6,6 @@
"documentation": "https://github.com/Andre0512/hon/", "documentation": "https://github.com/Andre0512/hon/",
"iot_class": "cloud_polling", "iot_class": "cloud_polling",
"issue_tracker": "https://github.com/Andre0512/hon/issues", "issue_tracker": "https://github.com/Andre0512/hon/issues",
"requirements": ["pyhOn==0.8.0b4"], "requirements": ["pyhOn"],
"version": "0.6.0-beta.3" "version": "0.6.0-beta.3"
} }

View File

@ -1,7 +1,7 @@
from __future__ import annotations from __future__ import annotations
from pyhon import Hon from pyhon import Hon
from pyhon.parameter import HonParameterRange from pyhon.parameter.range import HonParameterRange
from homeassistant.components.number import ( from homeassistant.components.number import (
NumberEntity, NumberEntity,

View File

@ -4,7 +4,7 @@ import logging
from pyhon import Hon from pyhon import Hon
from pyhon.appliance import HonAppliance from pyhon.appliance import HonAppliance
from pyhon.parameter import HonParameterFixed from pyhon.parameter.fixed import HonParameterFixed
from homeassistant.components.select import SelectEntity, SelectEntityDescription from homeassistant.components.select import SelectEntity, SelectEntityDescription
from homeassistant.config_entries import ConfigEntry from homeassistant.config_entries import ConfigEntry
@ -70,11 +70,6 @@ SELECTS = {
entity_category=EntityCategory.CONFIG, entity_category=EntityCategory.CONFIG,
translation_key="programs", translation_key="programs",
), ),
SelectEntityDescription(
key="startProgram.preheatStatus",
name="Preheat",
entity_category=EntityCategory.CONFIG,
),
), ),
"IV": ( "IV": (
SelectEntityDescription( SelectEntityDescription(

View File

@ -73,6 +73,17 @@ SWITCHES: dict[str, tuple[HonSwitchEntityDescription, ...]] = {
turn_off_key="resumeProgram", turn_off_key="resumeProgram",
), ),
), ),
"OV": (
HonSwitchEntityDescription(
key="active",
name="Oven",
icon="mdi:toaster-oven",
turn_on_key="startProgram",
turn_off_key="stopProgram",
),
),
"WD": ( "WD": (
HonSwitchEntityDescription( HonSwitchEntityDescription(
key="active", key="active",