"""Backend import boundaries and compatibility, using synthetic packets only.""" from dataclasses import asdict import json import struct import subprocess import sys import pytest from bmspy import ecoflow_proto, ecoflow_river2, ecoflow_river3 from bmspy.ecoflow_snapshot import EcoFlowSnapshot PD_PACKET = (2, 0x20, 2, bytes(14) + struct.pack("