Skip to content

Commit df680cb

Browse files
committed
Resolve upstream Modbus API conflict
1 parent 4fc9039 commit df680cb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎components/opendtu_meter_bridge/__init__.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,11 @@
4747
UNIT_WATT,
4848
UNIT_WATT_HOURS,
4949
)
50+
from esphome.yaml_util import load_yaml
5051

5152
# ESPHome 2026.7 introduced the ModbusServer codegen type. Earlier supported
5253
# versions expose the same server configuration through Modbus.
5354
MODBUS_SERVER_CLASS = getattr(modbus, "ModbusServer", modbus.Modbus)
54-
from esphome.yaml_util import load_yaml
5555

5656
_IDF_COMPONENTS_YML = Path(__file__).with_name("idf_component.yml")
5757

0 commit comments

Comments
 (0)