You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: