Skip to content

Commit bedb96f

Browse files
committed
Add StartupOptions.AutoStart and convert the IntFlag to bitshifts
1 parent 773ac25 commit bedb96f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

zigpy_znp/types/named.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,9 @@ class KeySource(basic.FixedList):
213213

214214

215215
class StartupOptions(basic.enum_uint8, enum.IntFlag):
216-
ClearConfig = 0x01
217-
ClearState = 0x02
216+
ClearConfig = 1 << 1
217+
ClearState = 1 << 2
218+
AutoStart = 1 << 3
218219

219220

220221
class DeviceLogicalType(basic.enum_uint8, enum.IntFlag):

0 commit comments

Comments
 (0)