Skip to content

Commit

Permalink
Fix deviceinfo error on 2023.8.0, remove readme duplicate points
Browse files Browse the repository at this point in the history
  • Loading branch information
mk-maddin authored Aug 4, 2023
1 parent 3eb5180 commit 766e4e0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,6 @@ Allows for control of [Fronius Wattpilot](https://www.fronius.com/en/solar-energ

* the "Lock level selection" type has changed with firmware version 38.5 to SELECT where previously it was a SWITCH. By default this repository is configured for firmware >= 38.5. If you are running older version, please uncomment the area wihtin [switch.yaml](https://github.com/mk-maddin/wattpilot-HA/blob/0d8815a71546bba6ee0f8b7a08453ec346ebb69f/custom_components/wattpilot/switch.yaml#L25) and comment the area wihtin [select.yaml](https://github.com/mk-maddin/wattpilot-HA/blob/0d8815a71546bba6ee0f8b7a08453ec346ebb69f/custom_components/wattpilot/select.yaml#L36).
* config_flow Options workflow (if you press "configure" button within Integrations view) does not work. WORKAROUND: If you want to change options remove and re-add the entity.
- the "Lock level selection" type has changed with firmware version 38.5 to SELECT where previously it was a SWITCH.
By default this repository is configured for firmware >= 38.5.
If you are running older version, please uncomment the area wihtin [switch.yaml](https://github.com/mk-maddin/wattpilot-HA/blob/0d8815a71546bba6ee0f8b7a08453ec346ebb69f/custom_components/wattpilot/switch.yaml#L25) and comment the area wihtin [select.yaml](https://github.com/mk-maddin/wattpilot-HA/blob/0d8815a71546bba6ee0f8b7a08453ec346ebb69f/custom_components/wattpilot/select.yaml#L36).

# Screenshots

Expand Down
6 changes: 3 additions & 3 deletions custom_components/wattpilot/entities.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,9 +191,9 @@ def device_info(self) -> DeviceInfo:
#_LOGGER.debug("%s - %s: device_info", self._charger_id, self._identifier)
info = DeviceInfo(
identifiers={(DOMAIN, getattr(self._charger,'serial', GetChargerProp(self._charger,'sse',None)))},
default_manufacturer=getattr(self._charger,'manufacturer',STATE_UNKNOWN),
default_model=GetChargerProp(self._charger,'typ',getattr(self._charger,'devicetype',STATE_UNKNOWN)),
default_name=getattr(self._charger,'name',getattr(self._charger,'hostname',STATE_UNKNOWN)),
manufacturer=getattr(self._charger,'manufacturer',STATE_UNKNOWN),
model=GetChargerProp(self._charger,'typ',getattr(self._charger,'devicetype',STATE_UNKNOWN)),
name=getattr(self._charger,'name',getattr(self._charger,'hostname',STATE_UNKNOWN)),
sw_version=getattr(self._charger,'firmware',STATE_UNKNOWN),
hw_version=str(GetChargerProp(self._charger,'var',STATE_UNKNOWN))+' KW',
#configuration_url=getattr(self._charger,'url',STATE_UNKNOWN)
Expand Down

0 comments on commit 766e4e0

Please sign in to comment.