Skip to content

Commit

Permalink
Add raw_value attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
PiotrMachowski committed Jan 16, 2023
1 parent d6b494a commit 0599ee2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- name: Download repo
uses: actions/checkout@v1

- name: Zip tauron_amiplus dir
- name: Zip gne_pv_monitoring dir
run: |
cd /home/runner/work/Home-Assistant-custom-components-GNE-PV-Monitoring/Home-Assistant-custom-components-GNE-PV-Monitoring/custom_components/gne_pv_monitoring
zip gne_pv_monitoring.zip -r ./
Expand Down
2 changes: 1 addition & 1 deletion custom_components/gne_pv_monitoring/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"documentation": "https://github.com/PiotrMachowski/Home-Assistant-custom-components-GNE-PV-Monitoring",
"issue_tracker": "https://github.com/PiotrMachowski/Home-Assistant-custom-components-GNE-PV-Monitoring/issues",
"iot_class": "cloud_polling",
"version": "1.0.0",
"version": "1.0.1",
"config_flow": true,
"requirements": [
"aiohttp",
Expand Down
6 changes: 6 additions & 0 deletions custom_components/gne_pv_monitoring/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,9 @@ def icon(self):
@property
def unique_id(self):
return f"{super().unique_id}_sensor_{self._parameter}"

@property
def extra_state_attributes(self):
return {
"raw_value": self.state
}

0 comments on commit 0599ee2

Please sign in to comment.