fix: fixed device data signature

This commit is contained in:
wakonig_k 2024-05-01 10:14:41 +02:00
parent e10d9f3639
commit e8290dbf44
2 changed files with 4 additions and 8 deletions

View File

@ -646,10 +646,8 @@ class SimFlyer(Device, PositionerBase, FlyerInterface):
bundle.append( bundle.append(
messages.DeviceMessage( messages.DeviceMessage(
signals={ signals={
self.name: {
"flyer_samx": {"value": positions[ii, 0], "timestamp": 0}, "flyer_samx": {"value": positions[ii, 0], "timestamp": 0},
"flyer_samy": {"value": positions[ii, 1], "timestamp": 0}, "flyer_samy": {"value": positions[ii, 1], "timestamp": 0},
}
}, },
metadata={"point_id": ii, **metadata}, metadata={"point_id": ii, **metadata},
) )

View File

@ -117,10 +117,8 @@ class SynFlyerLamNI(Device, PositionerBase):
bundle.append( bundle.append(
messages.DeviceMessage( messages.DeviceMessage(
signals={ signals={
"syn_flyer_lamni": {
"flyer_samx": {"value": positions[ii, 0], "timestamp": 0}, "flyer_samx": {"value": positions[ii, 0], "timestamp": 0},
"flyer_samy": {"value": positions[ii, 1], "timestamp": 0}, "flyer_samy": {"value": positions[ii, 1], "timestamp": 0},
}
}, },
metadata={"point_id": ii, **metadata}, metadata={"point_id": ii, **metadata},
) )