Skip to content

Commit

Permalink
add mixertemp and set temp class
Browse files Browse the repository at this point in the history
  • Loading branch information
jontofront committed Jan 26, 2024
1 parent dc25105 commit 4d27677
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
2 changes: 2 additions & 0 deletions custom_components/econet300/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,8 @@
"fanPower": SensorDeviceClass.POWER_FACTOR,
"tempFlueGas": SensorDeviceClass.TEMPERATURE,
"mixerSetTemp1": SensorDeviceClass.TEMPERATURE,
"mixerTemp": SensorDeviceClass.TEMPERATURE,
"mixerSetTemp": SensorDeviceClass.TEMPERATURE,
"tempBack": SensorDeviceClass.TEMPERATURE,
"tempCWU": SensorDeviceClass.TEMPERATURE,
"mode": "DEVICE_CLASS_OPERATION_MODE",
Expand Down
17 changes: 7 additions & 10 deletions custom_components/econet300/number.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,31 +2,28 @@
from dataclasses import dataclass
import logging

from homeassistant.components.number import (
NumberEntity,
NumberEntityDescription,
)
from homeassistant.components.number import NumberEntity, NumberEntityDescription
from homeassistant.config_entries import ConfigEntry
from homeassistant.core import HomeAssistant
from homeassistant.helpers.entity_platform import AddEntitiesCallback

from .api import Limits
from .common import Econet300Api, EconetDataCoordinator
from .entity import EconetEntity
from .common_functions import camel_to_snake
from .const import (
DOMAIN,
ENTITY_DEVICE_CLASS_MAP,
ENTITY_ICON,
ENTITY_UNIT_MAP,
SERVICE_API,
SERVICE_COORDINATOR,
NUMBER_MAP,
ENTITY_MIN_VALUE,
ENTITY_MAX_VALUE,
ENTITY_MIN_VALUE,
ENTITY_STEP,
ENTITY_UNIT_MAP,
ENTITY_VISIBLE,
NUMBER_MAP,
SERVICE_API,
SERVICE_COORDINATOR,
)
from .entity import EconetEntity

_LOGGER = logging.getLogger(__name__)

Expand Down

0 comments on commit 4d27677

Please sign in to comment.