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:
echoDaveD
2025-02-14 18:27:15 +01:00
committed by GitHub
parent ef1e0a0f79
commit cce625dabb
7 changed files with 52 additions and 46 deletions

View File

@@ -47,7 +47,7 @@ class ArgumentException(EHSException):
def __str__(self):
return f'{self.argument} -> {self.message}'
class InvalidMessageTypeException(EHSException):
class MessageCapacityStructureWarning(EHSException):
"""Exception raised for invalid message types.
Attributes:
@@ -55,10 +55,9 @@ class InvalidMessageTypeException(EHSException):
message -- explanation of the error
"""
def __init__(self, message_type, message="Invalid message type provided"):
self.message_type = message_type
def __init__(self, message="Invalid message type provided"):
self.message = message
super().__init__(self.message)
def __str__(self):
return f'{self.message_type} -> {self.message}'
return f'{self.message}'