We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3aaab4 commit 85a7c5eCopy full SHA for 85a7c5e
custom_components/iec/manifest.json
@@ -11,5 +11,5 @@
11
"issue_tracker": "https://github.com/guykh/iec-custom-component/issues",
12
"loggers": ["iec_api"],
13
"requirements": ["iec-api==0.3.1"],
14
- "version": "0.0.28"
+ "version": "0.0.29"
15
}
custom_components/iec/sensor.py
@@ -305,7 +305,7 @@ def __init__(
305
306
if self.entity_description.custom_attrs_fn:
307
attributes.update(self.entity_description.custom_attrs_fn(
308
- self.coordinator.data.get(self.contract_id, self.meter_id)
+ self.coordinator.data.get(str(int(self.contract_id)))
309
))
310
311
if is_multi_contract:
0 commit comments