Fix upnp error on unload_entry if device does not exist (#38230)

This commit is contained in:
Steven Looman 2020-08-05 02:24:42 +02:00 committed by GitHub
parent e76db60367
commit c33f309d5f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 29 additions and 14 deletions

View file

@ -4,9 +4,14 @@ import logging
from homeassistant.const import TIME_SECONDS
LOGGER = logging.getLogger(__package__)
CONF_LOCAL_IP = "local_ip"
DOMAIN = "upnp"
LOGGER = logging.getLogger(__package__)
DOMAIN_COORDINATORS = "coordinators"
DOMAIN_DEVICES = "devices"
DOMAIN_LOCAL_IP = "local_ip"
DOMAIN_CONFIG = "config"
BYTES_RECEIVED = "bytes_received"
BYTES_SENT = "bytes_sent"
PACKETS_RECEIVED = "packets_received"