We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 150ba2c commit 4268c2bCopy full SHA for 4268c2b
tests/timeseries/mock_microgrid.py
@@ -260,7 +260,7 @@ async def _comp_data_send_task(
260
) -> None:
261
for value in range(1, self._num_values + 1):
262
timestamp = datetime.now(tz=timezone.utc)
263
- val_to_send = value + int(int(comp_id) / 10)
+ val_to_send = value + int(comp_id) // 10
264
# for inverters with component_id > 100, send only half the messages.
265
if int(comp_id) % 10 == self.inverter_id_suffix:
266
if int(comp_id) < 100 or value <= 5:
0 commit comments