♻️ Extract shared ComwattEntity base for device_info #50
No reviewers
Labels
No labels
v1.0 · bloquant
v1.0 · majeur
v1.0 · mineur
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
mat/homeassistant-comwatt!50
Loading…
Reference in a new issue
No description provided.
Delete branch "refactor/shared-entity-base"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Pure, behavior-preserving refactor.
Extracts the duplicated
device_info+_attr_has_entity_namefromComwattSensorandComwattSwitchinto a newentity.pyComwattEntitybase. Uses thesiteKind-supersetdevice_info(harmless for switch devices, which have nositeKind). Independent of the other PRs.