* add service to fetch more connections
* improve error messages
* better errors
* wip
* fix service register
* add working tests
* improve tests
* temp availability
* test availability
* remove availability test
* change error type for coordinator update
* fix missed coverage
* convert from entity service to integration service
* cleanup changes
* add more tests for the service
* chore: Update bsblan library to version 0.6.1
* add dataclass BSBLANConfig
remove session as bsblan has it's own session
* Update temperature unit handling in BSBLANClimate
* chore: Remove unused constant in bsblan/const.py
* chore: Update python-bsblan library to version 0.6.2
* feat: Add async_get_clientsession to BSBLAN initialization
This commit adds the `async_get_clientsession` function to the initialization of the `BSBLAN` class in both `__init__.py` and `config_flow.py` files. This allows the `BSBLAN` instance to have its own session for making HTTP requests. This change improves the performance and reliability of the BSBLAN integration.
* Handle case of sensors removed server side
* Update available state on value update
* Set uptime to None if key is missing
* Replace _attr_available by _data_valid
Make sure diagnostic data is output in deterministic order
Sets are not ordered, so the tests for this failed sporadically since it is
converted into a list when converted to json.
dsmr: also migrate entries for devices with correct serial
When the dsmr code could not find the serial_nr for the gas meter,
it creates the gas meter device with the entry_id as identifier.
But when there is a correct serial_nr, it will use that as identifier
for the dsmr gas device.
Now the migration code did not take this into account, so migration to
the new name failed since it didn't look for the device with correct
serial_nr.
This commit fixes this and adds a test for this.
* Ensure legacy event foreign key is removed from the states table
If the system ran out of disk space removing the FK, it would
fail. #121938 fixed that to try again, however that PR was made
ineffective by #122069 since it will never reach the check.
To solve this, the migration version is incremented to 2, and
the migration is no longer marked as done unless the rebuild
/fk removal is successful.
* fix logic for mysql
* fix test
* asserts
* coverage
* coverage
* narrow test
* fixes
* split tests
* should have skipped
* fixture must be used