core/homeassistant/components/alarmdecoder
Christopher Tremblay b015dbfccb
Add AlarmDecoder device info (#117357)
* Update AlarmDecoder component to newer model

This commit makes AlarmDecoder operate as a proper device entity following the new model introduced a few years ago.

Code also has an internal dependency on a newer version of adext (>= 0.4.3) which has been updated correspondingly.

* Created AlarmDecoder entity

Added an alarmdecoder entity so the device_info can be re-used across the integration

* Move _attr_has_entity_name to base entity

As per code review suggestion, clean up the object model.

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>

* Missed one suggestion with the prior commit

Moves _attr_has_entity_name to base entity

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>

* Address some ruff issues

* Apply additional ruff cleanups

Ran ruff again to clean up a few files tat weren't picked up last time

* Apply suggestions from code review

Some additional cleanup of style & removal of unnecessary code

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>

* Properly generated the integration file

generation had to happen twice for this to work.  Now that it's generated, I'm including the missing update.

* Apply suggestions from code review

Use local client variable instead of self._client

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>

* Sort the manifest

documentation was added, but it wasn't sorted properly in the key/value pairs

* Add alarmdecoder entity file to coverage ignore file

Added the alarmdecoder entity file so it is ignored for coverage

---------

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
2024-05-18 08:59:44 +02:00
..
__init__.py Add AlarmDecoder device info (#117357) 2024-05-18 08:59:44 +02:00
alarm_control_panel.py Add AlarmDecoder device info (#117357) 2024-05-18 08:59:44 +02:00
binary_sensor.py Add AlarmDecoder device info (#117357) 2024-05-18 08:59:44 +02:00
config_flow.py Replace pylint broad-except with Ruff BLE001 (#116250) 2024-05-07 14:00:27 +02:00
const.py
entity.py Add AlarmDecoder device info (#117357) 2024-05-18 08:59:44 +02:00
icons.json Add icon translations to alarmdecoder (#111319) 2024-02-25 10:36:18 +01:00
manifest.json Add AlarmDecoder device info (#117357) 2024-05-18 08:59:44 +02:00
sensor.py Add AlarmDecoder device info (#117357) 2024-05-18 08:59:44 +02:00
services.yaml
strings.json Host field description: implement review from #104658 (#104685) 2023-11-29 08:44:28 +01:00