Skip to content

Commit

Permalink
Merge pull request #185 from hultenvp/177-moving-to-v305-caused-dupli…
Browse files Browse the repository at this point in the history
…cated-entity-names

177 moving to v305 caused duplicated entity names
  • Loading branch information
hultenvp authored Oct 30, 2022
2 parents 5759891 + 084dab1 commit 7757f54
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion custom_components/solis/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"domain": "solis",
"version": "3.0.6",
"version": "3.0.7",
"config_flow": true,
"name": "Solis Inverter",
"iot_class": "cloud_push",
Expand Down
4 changes: 2 additions & 2 deletions custom_components/solis/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
_LOGGER = logging.getLogger(__name__)

# VERSION
VERSION = '3.0.6'
VERSION = '3.0.7'

# ATTRIBUTES
LAST_UPDATED = 'Last updated'
Expand Down Expand Up @@ -171,7 +171,7 @@ def __init__(self,
self._attr_native_unit_of_measurement = SENSOR_TYPES[sensor_type][1]
self._attr_device_class = SENSOR_TYPES[sensor_type][3]
self._attr_state_class = SENSOR_TYPES[sensor_type][4]
self._attr_unique_id = f"{inverter_sn}_{self._name}".replace(" ", "_")
self._attr_unique_id = f"{inverter_sn}{self._name}".replace(" ", "_")
ginlong_service.subscribe(self, inverter_sn, SENSOR_TYPES[sensor_type][5])

def do_update(self, value: Any, last_updated: datetime) -> bool:
Expand Down

0 comments on commit 7757f54

Please sign in to comment.