Skip to content

Commit 949f6fa

Browse files
committed
Adapt to new Port.get_last_read_value() method name
1 parent c7a4c08 commit 949f6fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

qtoggleserver/thingspeak/thingspeak.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ async def send_values(self, values: Dict[int, float], created_at: datetime.datet
120120
async def periodic_send_values(self) -> None:
121121
while True:
122122
ports = [core_ports.get(port_id) for port_id in self._fields.keys()]
123-
port_values = {p.get_id(): p.get_value() for p in ports}
123+
port_values = {p.get_id(): p.get_last_read_value() for p in ports}
124124
field_values = {self._fields[id_]: value for id_, value in port_values.items()}
125125

126126
try:

0 commit comments

Comments
 (0)