Feature/0.1.0 releasebranch (#6)
* device_class: measurement for NASA_EHSSENTINEL_COP and NASA_EHSSENTINEL_HEAT_OUTPUT * state_class: measurement for NASA_EHSSENTINEL_COP and NASA_EHSSENTINEL_HEAT_OUTPUT * ENUM_IN_WATERPUMP_PWM_VALUE as var not enum Unit % as = measurement * NASA_OUTDOOR_CONTROL_WATTMETER_ALL_UNIT_ACCUM state_class: total_increasing * NASA_OUTDOOR_CONTROL_WATTMETER_ALL_UNIT_ACCUM device_class and unit * NASA_OUTDOOR_CONTROL_WATTMETER_ALL_UNIT_ACCUM device_class energy * fixing ValueError and better logging for determine_value try catch * update reqierments and rreadme for venv * ENUM_IN_FSV_2041 enum value fixed * large buffer log * prevent buffer overloading * remove await * a * Feature/test without buffer (#5) * test * test * test * devision by 0 error fixed remove task print * logger * topic clear only on online message * expand logging * reduce logging
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
from enum import Enum
|
||||
from NASAMessage import NASAMessage
|
||||
from EHSExceptions import MessageCapacityStructureWarning
|
||||
|
||||
class AddressClassEnum(Enum):
|
||||
"""
|
||||
@@ -259,7 +260,7 @@ class NASAPacket:
|
||||
elif message_type == 3:
|
||||
payload_size = len(msg_rest)
|
||||
if capacity != 1:
|
||||
raise ValueError("Message with structure type must have capacity of 1.")
|
||||
raise MessageCapacityStructureWarning("Message with structure type must have capacity of 1.")
|
||||
else:
|
||||
raise ValueError(f"Mssage type unknown: {message_type}")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user