From 74de914c4a9069c1890a870183cbb02b5e85e145 Mon Sep 17 00:00:00 2001 From: jkerdreu <jkerdreu@b32b6428-25c9-4566-ad07-03861ab6144f> Date: Mon, 31 Oct 2022 00:28:54 +0000 Subject: [PATCH] Fix product_id should be a string not a enum item ! :) git-svn-id: https://redmine.imt-atlantique.fr/svn/xaal/code/Python/branches/0.7@3029 b32b6428-25c9-4566-ad07-03861ab6144f --- devices/protocols/Yeelight/xaal/yeelight/devices.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devices/protocols/Yeelight/xaal/yeelight/devices.py b/devices/protocols/Yeelight/xaal/yeelight/devices.py index f65a8d1e..68bd4e72 100644 --- a/devices/protocols/Yeelight/xaal/yeelight/devices.py +++ b/devices/protocols/Yeelight/xaal/yeelight/devices.py @@ -103,7 +103,7 @@ class YeelightDev(object): self.on_properties(properties) # we need to be connected to find out which model if self.dev.product_id == None: - self.dev.product_id = self.bulb.bulb_type + self.dev.product_id = str(self.bulb.bulb_type) class RGBW(YeelightDev): -- GitLab