Use moisture and moving device class in various integrations (#39963)

This commit is contained in:
springstan authored and GitHub committed 2020-09-13 16:33:54 +02:00
1 parent ceeea52915
commit 621526bbae
11 files changed
+38 -17

No files matched your search

@@ -3,7 +3,11 @@ import logging
import voluptuous as vol
from homeassistant.components.binary_sensor import PLATFORM_SCHEMA, BinarySensorEntity
from homeassistant.components.binary_sensor import (
DEVICE_CLASS_MOISTURE,
PLATFORM_SCHEMA,
BinarySensorEntity,
)
from homeassistant.const import CONF_MONITORED_CONDITIONS
import homeassistant.helpers.config_validation as cv
@@ -11,7 +15,7 @@ from . import DOMAIN
_LOGGER = logging.getLogger(__name__)
SENSOR_TYPES = {"Rain": "moisture", "Night": None}
SENSOR_TYPES = {"Rain": DEVICE_CLASS_MOISTURE, "Night": None}
PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(
{