From 0e9c4905ecc79ea65506819ea08bb40b69d74c8c Mon Sep 17 00:00:00 2001 From: jdeath <17914369+jdeath@users.noreply.github.com> Date: Wed, 23 Nov 2022 22:14:43 -0500 Subject: [PATCH] Add support for switch model HPSA11CWB add support for switch model HPSA11CWB --- custom_components/hubspace/light.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/custom_components/hubspace/light.py b/custom_components/hubspace/light.py index b62d27c..4daec21 100644 --- a/custom_components/hubspace/light.py +++ b/custom_components/hubspace/light.py @@ -197,7 +197,7 @@ def __init__(self, hs, friendlyname,debug) -> None: # https://www.homedepot.com/p/Defiant-15-Amp-120-Volt-Smart-Hubspace-Outdoor-Single-Outlet-Wi-Fi-Bluetooth-Plug-HPPA51CWB/316341409 # https://www.homedepot.com/p/Defiant-15-Amp-120-Volt-Smart-Hubspace-Wi-Fi-Bluetooth-Plug-with-1-Outlet-HPPA11AWB/315636834 - if self._model == 'HPPA51CWB' or self._model == 'HPPA11AWBA023': + if self._model == 'HPPA51CWB' or self._model == 'HPPA11AWBA023' or self._model == 'HPSA11CWB': self._supported_color_modes.extend([ColorMode.ONOFF]) #https://www.homedepot.com/p/EcoSmart-16-ft-Smart-Hubspace-RGB-and-Tunable-White-Tape-Light-Works-with-Amazon-Alexa-and-Google-Assistant-AL-TP-RGBCW-60/314680856 if self._model == 'AL-TP-RGBCW-60-2116, AL-TP-RGBCW-60-2232' or self._model == 'HPKA315CWB' or self._model =='HPPA52CWBA023': @@ -651,4 +651,4 @@ def update(self) -> None: self._volts = self._hs.getState(self._childId,'output-voltage-switch') if self._debug: - self._debugInfo = self._hs.getDebugInfo(self._childId) + self._debugInfo = self._hs.getDebugInfo(self._childId) \ No newline at end of file