File tree Expand file tree Collapse file tree 2 files changed +13
-13
lines changed
Expand file tree Collapse file tree 2 files changed +13
-13
lines changed Original file line number Diff line number Diff line change 8888 "070051" : "Switch" ,
8989 "080029" : "Switch" ,
9090}
91+
92+ TYPE_MODEL : Final [dict [int , tuple [str ]]] = {
93+ 0 : ("Stick" ),
94+ 1 : ("Circle" , "Stealth" ),
95+ 3 : ("Switch" ),
96+ 4 : (),
97+ 5 : ("Sense" ),
98+ 6 : ("Scan" ),
99+ 7 : ("Celsius" ),
100+ 8 : ("Celcius" ),
101+ 9 : ("Stealth" ),
102+ }
Original file line number Diff line number Diff line change 2626 RelayState ,
2727)
2828from ..connection import StickController
29- from ..constants import SUPPRESS_INITIALIZATION_WARNINGS , UTF8
29+ from ..constants import SUPPRESS_INITIALIZATION_WARNINGS , TYPE_MODEL , UTF8
3030from ..exceptions import FeatureError , NodeError
3131from ..helpers .util import version_to_model
3232from ..messages .requests import NodeInfoRequest , NodePingRequest
4949CACHE_HARDWARE = "hardware"
5050CACHE_NODE_INFO_TIMESTAMP = "node_info_timestamp"
5151
52- TYPE_MODEL : Final [dict [int , tuple [str ]]] = {
53- 0 : ("Stick" ),
54- 1 : ("Circle" , "Stealth" ),
55- 3 : ("Switch" ),
56- 4 : (),
57- 5 : ("Sense" ),
58- 6 : ("Scan" ),
59- 7 : ("Celsius" ),
60- 8 : ("Celcius" ),
61- 9 : ("Stealth" ),
62- }
63-
6452class PlugwiseBaseNode (FeaturePublisher , ABC ):
6553 """Abstract Base Class for a Plugwise node."""
6654
You can’t perform that action at this time.
0 commit comments