|
4 | 4 | import logging |
5 | 5 | from typing import Any |
6 | 6 |
|
7 | | -from zigpy.profiles import zha |
| 7 | +from zigpy.profiles import zgp, zha |
8 | 8 | from zigpy.quirks import CustomCluster, CustomDevice |
9 | 9 | import zigpy.types as t |
10 | 10 | from zigpy.zcl.clusters.general import ( |
@@ -177,8 +177,8 @@ def __init__(self, *args, **kwargs): |
177 | 177 | # device_version=0 |
178 | 178 | # input_clusters=[33] output_clusters=[33]> |
179 | 179 | 242: { |
180 | | - PROFILE_ID: 0xA1E0, # 41440 (dec) |
181 | | - DEVICE_TYPE: 0x0061, |
| 180 | + PROFILE_ID: zgp.PROFILE_ID, # 41440 (dec) |
| 181 | + DEVICE_TYPE: zgp.DeviceType.PROXY_BASIC, |
182 | 182 | INPUT_CLUSTERS: [], |
183 | 183 | OUTPUT_CLUSTERS: [ |
184 | 184 | GreenPowerProxy.cluster_id, # 0x0021 = GreenPowerProxy.cluster_id |
@@ -210,8 +210,8 @@ def __init__(self, *args, **kwargs): |
210 | 210 | # device_version=0 |
211 | 211 | # input_clusters=[33] output_clusters=[33]> |
212 | 212 | 242: { |
213 | | - PROFILE_ID: 0xA1E0, # 41440 (dec) |
214 | | - DEVICE_TYPE: 0x0061, |
| 213 | + PROFILE_ID: zgp.PROFILE_ID, # 41440 (dec) |
| 214 | + DEVICE_TYPE: zgp.DeviceType.PROXY_BASIC, |
215 | 215 | INPUT_CLUSTERS: [], |
216 | 216 | OUTPUT_CLUSTERS: [ |
217 | 217 | GreenPowerProxy.cluster_id, # 0x0021 = GreenPowerProxy.cluster_id |
@@ -253,8 +253,8 @@ class IkeaSTARKVIND_v2(IkeaSTARKVIND): |
253 | 253 | # device_version=0 |
254 | 254 | # input_clusters=[33] output_clusters=[33]> |
255 | 255 | 242: { |
256 | | - PROFILE_ID: 0xA1E0, # 41440 (dec) |
257 | | - DEVICE_TYPE: 0x0061, |
| 256 | + PROFILE_ID: zgp.PROFILE_ID, # 41440 (dec) |
| 257 | + DEVICE_TYPE: zgp.DeviceType.PROXY_BASIC, |
258 | 258 | INPUT_CLUSTERS: [], |
259 | 259 | OUTPUT_CLUSTERS: [ |
260 | 260 | GreenPowerProxy.cluster_id, # 0x0021 = GreenPowerProxy.cluster_id |
@@ -287,8 +287,8 @@ class IkeaSTARKVIND_v2(IkeaSTARKVIND): |
287 | 287 | # device_version=0 |
288 | 288 | # input_clusters=[33] output_clusters=[33]> |
289 | 289 | 242: { |
290 | | - PROFILE_ID: 0xA1E0, # 41440 (dec) |
291 | | - DEVICE_TYPE: 0x0061, |
| 290 | + PROFILE_ID: zgp.PROFILE_ID, # 41440 (dec) |
| 291 | + DEVICE_TYPE: zgp.DeviceType.PROXY_BASIC, |
292 | 292 | INPUT_CLUSTERS: [], |
293 | 293 | OUTPUT_CLUSTERS: [ |
294 | 294 | GreenPowerProxy.cluster_id, # 0x0021 = GreenPowerProxy.cluster_id |
|
0 commit comments