Use platform enum (2) [E-G] (#60933)

This commit is contained in:
Marc Mueller 2021-12-04 13:26:40 +01:00 committed by GitHub
parent 79cd281c48
commit cd1b923e16
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
42 changed files with 150 additions and 91 deletions

View file

@ -2,9 +2,16 @@
from typing import Literal
from homeassistant.const import Platform
DOMAIN = "fritz"
PLATFORMS = ["binary_sensor", "device_tracker", "sensor", "switch"]
PLATFORMS = [
Platform.BINARY_SENSOR,
Platform.DEVICE_TRACKER,
Platform.SENSOR,
Platform.SWITCH,
]
DATA_FRITZ = "fritz_data"