Remove default unit of measurement in IHC sensors (#93054)

Remove sensor default unit of measurement
pull/93089/head
Jens Østergaard Nielsen 2023-05-15 09:50:39 +02:00 committed by GitHub
parent 55c675d0fd
commit 01dc27e2a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 6 deletions

View File

@ -12,7 +12,6 @@ from homeassistant.const import (
CONF_UNIT_OF_MEASUREMENT,
CONF_URL,
CONF_USERNAME,
UnitOfTemperature,
)
from homeassistant.core import HomeAssistant
from homeassistant.helpers import discovery
@ -81,11 +80,7 @@ LIGHT_SCHEMA = DEVICE_SCHEMA.extend(
)
SENSOR_SCHEMA = DEVICE_SCHEMA.extend(
{
vol.Optional(
CONF_UNIT_OF_MEASUREMENT, default=UnitOfTemperature.CELSIUS
): cv.string
}
{vol.Optional(CONF_UNIT_OF_MEASUREMENT): cv.string}
)
IHC_SCHEMA = vol.Schema(