Skip to content

Commit

Permalink
Update to goodwe 0.4.6
Browse files Browse the repository at this point in the history
  • Loading branch information
mletenay committed May 26, 2024
1 parent aed25f6 commit ad69de6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions custom_components/goodwe/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
"iot_class": "local_polling",
"issue_tracker": "https://github.com/mletenay/home-assistant-goodwe-inverter/issues",
"loggers": ["goodwe"],
"requirements": ["goodwe==0.4.5"],
"version": "0.9.9.25"
"requirements": ["goodwe==0.4.6"],
"version": "0.9.9.26"
}
5 changes: 3 additions & 2 deletions custom_components/goodwe/number.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,13 +180,14 @@ def __init__(
device_info: DeviceInfo,
description: GoodweNumberEntityDescription,
inverter: Inverter,
current_value: int,
value: int,
) -> None:
"""Initialize the number inverter setting entity."""
self.entity_description = description
self._attr_unique_id = f"{DOMAIN}-{description.key}-{inverter.serial_number}"
self._attr_device_info = device_info
self._attr_native_value = float(current_value)
self._attr_native_value = float(value) if value is not None else None

self._inverter: Inverter = inverter

async def async_update(self) -> None:
Expand Down

0 comments on commit ad69de6

Please sign in to comment.