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
42 changed files with 150 additions and 91 deletions

View File

@@ -1,4 +1,5 @@
"""Constants for the AVM Fritz!Box call monitor integration."""
from homeassistant.const import Platform
STATE_RINGING = "ringing"
STATE_DIALING = "dialing"
@@ -36,6 +37,6 @@ DEFAULT_NAME = "Phone"
DOMAIN = "fritzbox_callmonitor"
MANUFACTURER = "AVM"
PLATFORMS = ["sensor"]
PLATFORMS = [Platform.SENSOR]
UNDO_UPDATE_LISTENER = "undo_update_listener"
FRITZBOX_PHONEBOOK = "fritzbox_phonebook"