mirror of
https://github.com/home-assistant/core.git
synced 2025-07-14 00:37:13 +00:00
copy() --> deepcopy(). (#52794)
This commit is contained in:
parent
2c3f3d7bda
commit
c360d6009c
@ -1,5 +1,6 @@
|
||||
"""Support for Modbus."""
|
||||
import asyncio
|
||||
from copy import deepcopy
|
||||
import logging
|
||||
|
||||
from pymodbus.client.sync import ModbusSerialClient, ModbusTcpClient, ModbusUdpClient
|
||||
@ -196,7 +197,7 @@ class ModbusHub:
|
||||
self._config_name = client_config[CONF_NAME]
|
||||
self._config_type = client_config[CONF_TYPE]
|
||||
self._config_delay = client_config[CONF_DELAY]
|
||||
self._pb_call = PYMODBUS_CALL.copy()
|
||||
self._pb_call = deepcopy(PYMODBUS_CALL)
|
||||
self._pb_class = {
|
||||
CONF_SERIAL: ModbusSerialClient,
|
||||
CONF_TCP: ModbusTcpClient,
|
||||
|
Loading…
x
Reference in New Issue
Block a user