From e9aa37fe2c521df267156e950bea6278add72a93 Mon Sep 17 00:00:00 2001 From: iloveicedgreentea <31193909+iloveicedgreentea@users.noreply.github.com> Date: Fri, 5 Jul 2024 19:29:12 -0400 Subject: [PATCH] official --- custom_components/madvr/coordinator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/madvr/coordinator.py b/custom_components/madvr/coordinator.py index c6a9fb6..460c151 100644 --- a/custom_components/madvr/coordinator.py +++ b/custom_components/madvr/coordinator.py @@ -31,7 +31,7 @@ def __init__( super().__init__(hass, _LOGGER, name=DOMAIN) self.entry_id = self.config_entry.entry_id # get the mac address from the config entry - self.mac = self.config_entry.data[CONF_MAC] + self.mac = self.config_entry.data.get(CONF_MAC) self.client = client self.client.set_update_callback(self.handle_push_data) _LOGGER.debug("MadVRCoordinator initialized with mac: %s", self.mac)