Skip to content

Commit abd02a5

Browse files
authored
Deep copy dict
1 parent 3ca4c3e commit abd02a5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

custom_components/solis/ginlong_base.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
_LOGGER = logging.getLogger(__name__)
1515

1616
# VERSION
17-
VERSION = '0.1.0'
17+
VERSION = '0.1.1'
1818

1919
class PortalConfig(ABC):
2020
""" Portal configuration data """
@@ -48,7 +48,7 @@ class GinlongData():
4848

4949
def __init__(self, data: dict[str, str | int | float]) -> None:
5050
""" Initialize the data object """
51-
self._data = data
51+
self._data = dict(data)
5252

5353

5454
def get_inverter_data(self) -> dict[str, str | int | float]:

0 commit comments

Comments
 (0)