From dc473086193bbc526dc0e25d7f6e668aa6f41fa5 Mon Sep 17 00:00:00 2001 From: Keith Baker Date: Wed, 10 Apr 2024 17:51:23 -0400 Subject: [PATCH] looks like the assication link just needs the domain as part of the key (#60) --- custom_components/sunpower/entity.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/custom_components/sunpower/entity.py b/custom_components/sunpower/entity.py index 103d174..153ab54 100644 --- a/custom_components/sunpower/entity.py +++ b/custom_components/sunpower/entity.py @@ -48,7 +48,7 @@ def device_info(self): "manufacturer": "SunPower", "model": self._meter_info["MODEL"], "sw_version": self._meter_info["SWVER"], - "via_device": self._pvs_info["SERIAL"], + "via_device": (DOMAIN, self._pvs_info["SERIAL"]), } return device_info @@ -72,6 +72,6 @@ def device_info(self): "manufacturer": self._inverter_info["TYPE"], "model": self._inverter_info["MODEL"], "sw_version": self._inverter_info["SWVER"], - "via_device": self._pvs_info["SERIAL"], + "via_device": (DOMAIN, self._pvs_info["SERIAL"]), } return device_info