There is no .to_bytes() defined for dlms_data.TimeData and `dlms_data.DateData``
They should be instanciated with either datetime, data or time object. None should also be allowed and encoded to all ones.
@define
class TimeData:
value: time | None = field(converter=convert_datetime_to_time)
@define
class DateData
value: date | None = field(converters=convert_datetime_to_date)
There is no
.to_bytes()
defined fordlms_data.TimeData
and `dlms_data.DateData``They should be instanciated with either datetime, data or time object. None should also be allowed and encoded to all ones.