moved ConfigShim to being under tlv, updated RegisterTlvs to use enums directly in non tlv code

This commit is contained in:
Blake Harnden 2020-03-22 14:59:42 -07:00
parent 7a5a0f34ea
commit 39499a4ab4
14 changed files with 128 additions and 128 deletions

View file

@ -49,7 +49,6 @@ class LinkTypes(Enum):
WIRED = 1
# TODO: cleanup usage of .value
class RegisterTlvs(Enum):
"""
Register type, length, value enumerations.

View file

@ -1897,7 +1897,7 @@ class Session:
Return the current time we have been in the runtime state, or zero
if not in runtime.
"""
if self.state == EventTypes.RUNTIME_STATE.value:
if self.state == EventTypes.RUNTIME_STATE:
return time.monotonic() - self._state_time
else:
return 0.0

View file

@ -57,7 +57,7 @@ class SessionConfig(ConfigurableManager, ConfigurableOptions):
label="SDT3D URL",
),
]
config_type = RegisterTlvs.UTILITY.value
config_type = RegisterTlvs.UTILITY
def __init__(self) -> None:
super().__init__()