Remove default unit of measurement in IHC sensors (#93054)
Remove sensor default unit of measurementpull/93089/head
parent
55c675d0fd
commit
01dc27e2a2
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue