mirror of
https://github.com/JoelBender/bacpypes
synced 2025-09-28 22:15:23 +08:00
use the new CurrentPropertyListMixIn
This commit is contained in:
parent
ebbf8016d0
commit
84a0e44847
|
@ -22,6 +22,7 @@ from bacpypes.basetypes import CalendarEntry, DailySchedule, DateRange, \
|
||||||
from bacpypes.object import register_object_type, get_datatype, WritableProperty, ScheduleObject
|
from bacpypes.object import register_object_type, get_datatype, WritableProperty, ScheduleObject
|
||||||
|
|
||||||
from bacpypes.app import BIPSimpleApplication
|
from bacpypes.app import BIPSimpleApplication
|
||||||
|
from bacpypes.service.object import CurrentPropertyListMixIn
|
||||||
from bacpypes.service.device import LocalDeviceObject
|
from bacpypes.service.device import LocalDeviceObject
|
||||||
|
|
||||||
# some debugging
|
# some debugging
|
||||||
|
@ -246,7 +247,7 @@ def datetime_to_time(date, time):
|
||||||
|
|
||||||
@bacpypes_debugging
|
@bacpypes_debugging
|
||||||
@register_object_type(vendor_id=999)
|
@register_object_type(vendor_id=999)
|
||||||
class LocalScheduleObject(ScheduleObject):
|
class LocalScheduleObject(CurrentPropertyListMixIn, ScheduleObject):
|
||||||
|
|
||||||
properties = [
|
properties = [
|
||||||
WritableProperty('presentValue', AnyAtomic),
|
WritableProperty('presentValue', AnyAtomic),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user