File tree Expand file tree Collapse file tree 1 file changed +5
-19
lines changed Expand file tree Collapse file tree 1 file changed +5
-19
lines changed Original file line number Diff line number Diff line change @@ -13,41 +13,27 @@ class SonoffCluster(CustomCluster):
13
13
14
14
cluster_id = 0xFC11
15
15
16
+ manufacturer_id_override = foundation .ZCLHeader .NO_MANUFACTURER_ID
17
+
16
18
class AttributeDefs (BaseAttributeDefs ):
17
19
"""Attribute definitions."""
18
20
19
21
external_trigger_mode = ZCLAttributeDef (
20
22
id = 0x0016 ,
21
23
type = t .uint8_t ,
24
+ is_manufacturer_specific = True ,
22
25
)
23
26
detach_relay = ZCLAttributeDef (
24
27
id = 0x0017 ,
25
28
type = t .Bool ,
29
+ is_manufacturer_specific = True ,
26
30
)
27
31
turbo_mode = ZCLAttributeDef (
28
32
id = 0x0012 ,
29
33
type = t .int16s ,
34
+ is_manufacturer_specific = True ,
30
35
)
31
36
32
- async def _read_attributes (
33
- self ,
34
- attribute_ids : list [t .uint16_t ],
35
- * args ,
36
- manufacturer : int | t .uint16_t | None = None ,
37
- ** kwargs ,
38
- ):
39
- """Read attributes ZCL foundation command."""
40
- return await super ()._read_attributes (
41
- attribute_ids ,
42
- * args ,
43
- manufacturer = foundation .ZCLHeader .NO_MANUFACTURER_ID ,
44
- ** kwargs ,
45
- )
46
-
47
- @property
48
- def _is_manuf_specific (self ):
49
- return False
50
-
51
37
52
38
class SonoffExternalSwitchTriggerType (types .enum8 ):
53
39
"""extern switch trigger type."""
You can’t perform that action at this time.
0 commit comments