mirror of
https://github.com/home-assistant/core.git
synced 2025-07-24 21:57:51 +00:00
Correct unit types in gardean bluetooth (#96683)
This commit is contained in:
parent
4d3e24465c
commit
cd0e9839a0
@ -16,7 +16,7 @@ from homeassistant.components.number import (
|
|||||||
NumberMode,
|
NumberMode,
|
||||||
)
|
)
|
||||||
from homeassistant.config_entries import ConfigEntry
|
from homeassistant.config_entries import ConfigEntry
|
||||||
from homeassistant.const import EntityCategory
|
from homeassistant.const import EntityCategory, UnitOfTime
|
||||||
from homeassistant.core import HomeAssistant
|
from homeassistant.core import HomeAssistant
|
||||||
from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
||||||
|
|
||||||
@ -37,7 +37,7 @@ DESCRIPTIONS = (
|
|||||||
GardenaBluetoothNumberEntityDescription(
|
GardenaBluetoothNumberEntityDescription(
|
||||||
key=Valve.manual_watering_time.uuid,
|
key=Valve.manual_watering_time.uuid,
|
||||||
translation_key="manual_watering_time",
|
translation_key="manual_watering_time",
|
||||||
native_unit_of_measurement="s",
|
native_unit_of_measurement=UnitOfTime.SECONDS,
|
||||||
mode=NumberMode.BOX,
|
mode=NumberMode.BOX,
|
||||||
native_min_value=0.0,
|
native_min_value=0.0,
|
||||||
native_max_value=24 * 60 * 60,
|
native_max_value=24 * 60 * 60,
|
||||||
@ -48,7 +48,7 @@ DESCRIPTIONS = (
|
|||||||
GardenaBluetoothNumberEntityDescription(
|
GardenaBluetoothNumberEntityDescription(
|
||||||
key=Valve.remaining_open_time.uuid,
|
key=Valve.remaining_open_time.uuid,
|
||||||
translation_key="remaining_open_time",
|
translation_key="remaining_open_time",
|
||||||
native_unit_of_measurement="s",
|
native_unit_of_measurement=UnitOfTime.SECONDS,
|
||||||
native_min_value=0.0,
|
native_min_value=0.0,
|
||||||
native_max_value=24 * 60 * 60,
|
native_max_value=24 * 60 * 60,
|
||||||
native_step=60.0,
|
native_step=60.0,
|
||||||
@ -58,7 +58,7 @@ DESCRIPTIONS = (
|
|||||||
GardenaBluetoothNumberEntityDescription(
|
GardenaBluetoothNumberEntityDescription(
|
||||||
key=DeviceConfiguration.rain_pause.uuid,
|
key=DeviceConfiguration.rain_pause.uuid,
|
||||||
translation_key="rain_pause",
|
translation_key="rain_pause",
|
||||||
native_unit_of_measurement="d",
|
native_unit_of_measurement=UnitOfTime.DAYS,
|
||||||
mode=NumberMode.BOX,
|
mode=NumberMode.BOX,
|
||||||
native_min_value=0.0,
|
native_min_value=0.0,
|
||||||
native_max_value=127.0,
|
native_max_value=127.0,
|
||||||
@ -69,7 +69,7 @@ DESCRIPTIONS = (
|
|||||||
GardenaBluetoothNumberEntityDescription(
|
GardenaBluetoothNumberEntityDescription(
|
||||||
key=DeviceConfiguration.season_pause.uuid,
|
key=DeviceConfiguration.season_pause.uuid,
|
||||||
translation_key="season_pause",
|
translation_key="season_pause",
|
||||||
native_unit_of_measurement="d",
|
native_unit_of_measurement=UnitOfTime.DAYS,
|
||||||
mode=NumberMode.BOX,
|
mode=NumberMode.BOX,
|
||||||
native_min_value=0.0,
|
native_min_value=0.0,
|
||||||
native_max_value=365.0,
|
native_max_value=365.0,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user