* Base the entity availability on the connected state of the appliance
* cache `ha_id`
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Inlcude coordinator `available` property at entity
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
---------
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Filter programs by execution type at select program entities
* Suggestions and improvements
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Use function and translation key at select program entity description
* Fix select entity description docstring
---------
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Migrate from homeconnect dependency to aiohomeconnect
* Reload the integration if there is an API error on event stream
* fix typos at coordinator tests
* Setup config entry at coordinator tests
* fix ruff
* Bump aiohomeconnect to version 0.11.4
* Fix set program options
* Use context based updates at coordinator
* Improved how `context_callbacks` cache is invalidated
* fix
* fixes and improvements at coordinator
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Remove stale Entity inheritance
* Small improvement for light subscriptions
* Remove non-needed function
It had its purpose before some refactoring before the firs commit, no is no needed as is only used at HomeConnectEntity constructor
* Static methods and variables at conftest
* Refresh the data after an event stream interruption
* Cleaned debug logs
* Fetch programs at coordinator
* Improvements
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Simplify obtaining power settings from coordinator data
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Remove unnecessary statement
* use `is UNDEFINED` instead of `isinstance`
* Request power setting only when it is strictly necessary
* Bump aiohomeconnect to 0.12.1
* use raw keys for diagnostics
* Use keyword arguments where needed
* Remove unnecessary statements
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
---------
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Home connect selector for programs
* Mark program switches as deprecated
* Simplified translation keys
* Improvements for program select entity
* Revert mark program switches as deprecated
* Return `None` if program is `None` or empty string
* Fix program format
* Use `is` instead of `==`
* Program selector entity selects program instead of start the selected program
* Fix typo
* Active and selected program
* Added ServiceValidationError
* Delete unnecessary `service` param at tests
* Use full program keys
* Fix again typos in programs states
* Use map for translations
* Add error handling for when the selected program is not registered on the program map
* Reverse map for programs and translation keys
* Remove stale string
* Log only once that the program is not part of the official Home Connect API specification
* pop programs
* Move `RE_CAMEL_CASE` to a better place
* Added warning if updated program is not valid
* Stale test function name
* Improve log about unknown program at update
* Add underscore before numbers in translation keys
* Added suggested changes
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Use target for adding an executor job
* Apply suggestions from code review
* Clean whitespace
---------
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Add diagnostics per device to Home Connect
* Include programs at device diagnostics
* Applied suggestions from epenet
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
* Applied more suggestions from epenet
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
* Test naming consistency
Co-authored-by: abmantis <amfcalt@gmail.com>
* Add return type to `_generate_entry_diagnostics`
---------
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
Co-authored-by: abmantis <amfcalt@gmail.com>
* Use BSH keys as as unique id suffix instead of the simple description
* Update tests/components/home_connect/test_init.py
---------
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
Added types to all arguments and return values to all functions
Defined class members and its types outside the constructor
Improved logic at binary sensor
* Update string formatting to use f-string on components
* Update code given review feedback
* Use f-string
---------
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>