From 484f7238751b2df79d58ffeaca44bc75abdb267f Mon Sep 17 00:00:00 2001 From: Jeef Date: Tue, 15 Mar 2022 16:52:19 -0600 Subject: [PATCH] IntelliFire Diagnostic Error Sensor (#67403) Co-authored-by: J. Nick Koston --- homeassistant/components/intellifire/manifest.json | 3 +-- homeassistant/components/intellifire/sensor.py | 6 ++++++ requirements_all.txt | 2 +- requirements_test_all.txt | 2 +- 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/homeassistant/components/intellifire/manifest.json b/homeassistant/components/intellifire/manifest.json index 03862a6ef5f..75d4ee2e75f 100644 --- a/homeassistant/components/intellifire/manifest.json +++ b/homeassistant/components/intellifire/manifest.json @@ -3,8 +3,7 @@ "name": "IntelliFire", "config_flow": true, "documentation": "https://www.home-assistant.io/integrations/intellifire", - "requirements": ["intellifire4py==0.9.9"], - "dependencies": [], + "requirements": ["intellifire4py==1.0.1"], "codeowners": ["@jeeftor"], "iot_class": "local_polling", "loggers": ["intellifire4py"] diff --git a/homeassistant/components/intellifire/sensor.py b/homeassistant/components/intellifire/sensor.py index b61ea443728..5f57ff62a23 100644 --- a/homeassistant/components/intellifire/sensor.py +++ b/homeassistant/components/intellifire/sensor.py @@ -114,6 +114,12 @@ INTELLIFIRE_SENSORS: tuple[IntellifireSensorEntityDescription, ...] = ( value_fn=lambda data: data.connection_quality, entity_registry_enabled_default=False, ), + IntellifireSensorEntityDescription( + key="errors", + name="Errors", + entity_category=EntityCategory.DIAGNOSTIC, + value_fn=lambda data: data.error_codes_string, + ), IntellifireSensorEntityDescription( key="ecm_latency", name="ECM Latency", diff --git a/requirements_all.txt b/requirements_all.txt index 9c71107e86a..05a46dfa62d 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -873,7 +873,7 @@ influxdb-client==1.24.0 influxdb==5.3.1 # homeassistant.components.intellifire -intellifire4py==0.9.9 +intellifire4py==1.0.1 # homeassistant.components.iotawatt iotawattpy==0.1.0 diff --git a/requirements_test_all.txt b/requirements_test_all.txt index 0f59c87c706..7e6ef229972 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -599,7 +599,7 @@ influxdb-client==1.24.0 influxdb==5.3.1 # homeassistant.components.intellifire -intellifire4py==0.9.9 +intellifire4py==1.0.1 # homeassistant.components.iotawatt iotawattpy==0.1.0