Skip to content

Commit

Permalink
Remove constraints on entity domains for entity_id configuration (#1252)
Browse files Browse the repository at this point in the history
  • Loading branch information
bramstroker committed Nov 11, 2022
1 parent e5f94dd commit 819dd80
Showing 1 changed file with 1 addition and 19 deletions.
20 changes: 1 addition & 19 deletions custom_components/powercalc/sensor.py
Expand Up @@ -151,29 +151,11 @@

_LOGGER = logging.getLogger(__name__)

SUPPORTED_ENTITY_DOMAINS = [
light.DOMAIN,
switch.DOMAIN,
fan.DOMAIN,
humidifier.DOMAIN,
binary_sensor.DOMAIN,
climate.DOMAIN,
device_tracker.DOMAIN,
remote.DOMAIN,
media_player.DOMAIN,
input_boolean.DOMAIN,
input_number.DOMAIN,
input_select.DOMAIN,
sensor.DOMAIN,
vacuum.DOMAIN,
water_heater.DOMAIN,
]

MAX_GROUP_NESTING_LEVEL = 5

SENSOR_CONFIG = {
vol.Optional(CONF_NAME): cv.string,
vol.Optional(CONF_ENTITY_ID): cv.entity_domain(SUPPORTED_ENTITY_DOMAINS),
vol.Optional(CONF_ENTITY_ID): cv.entity_id,
vol.Optional(CONF_UNIQUE_ID): cv.string,
vol.Optional(CONF_MODEL): cv.string,
vol.Optional(CONF_MANUFACTURER): cv.string,
Expand Down

0 comments on commit 819dd80

Please sign in to comment.