rmvtransport: make filters always effective
In the `rmvtransport` integration, the three config attributes
`destination`, `lines`, and `time_offset` all act as filters. The
expectation is that if multiple filters are given, all of them take
effect.
However, as a consequence of using `elif` in the loop body, if a
`destination` filter has been configured, then both the `lines` and the
`time_offset` filters are ignored and have no effect.
Replace the `elif` with an `if` clause to allow all filter settings to
work as intended.
CC: @cgtobi
* Move tag base entity to separate module
* Add tag to _ENTITY_COMPONENTS
* Move Entity back in
* Add tag to base platforms
* Adjust core_files
* Revert "Adjust core_files"
This reverts commit 180c5034de.
* Revert "Add tag to base platforms"
This reverts commit 381bcf12f0.
* 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>
* hand down device serial into common entity
* fix platforms
* Revert "fix platforms"
This reverts commit 067af2b567.
* handle event loop issue
* hand in serial
* Revert "Revert "fix platforms""
This reverts commit 9bbb55ee6d.
* fix get serial call
* handle other exceptions
* also check device model for migration
* merge entity and device migration
* add test fixture without serial
* adjust test cases
* add dummy fixture
* remove commented code
* modify migration
* use continue
* break comment
* Added counters to iskra integration
* reverted pyiskra bump as reviewed
* Fixed iskra integration according to review
* fixed iskra integration according to review
Fix handling of `NoneType` for torrents in `count_torrents_in_states` function
Added a check to handle cases where the 'torrents' data is None, avoiding a `TypeError` when attempting to get the length of a `NoneType` object. The function now returns 0 if 'torrents' is None, ensuring robust behavior when no torrent data is available.
* Dont launch SSE client for core firmware 0.9.9
* Dont offer updates on core firmware 0.9.9
* Add correct firmware done event for legacy v2 firmware
* test update legacy v2 firmware
* Dont raise issue for firmware v2
* Update Aseko to support new API
* Apply suggestions from code review
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Use self.unit instead of self._unit
* Refactor sensor setup entry
* Keep same unique id and identifier
* Revert rename free_chlorine translation key
* Remove new heating entity to keep PR small
* Fix keep same unique id
---------
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Use correct app credentials when europe is checked
* Rework to add china as well
* Use our own package since the maintainer of the original package is not responding
* Revert to using rewardone's package
* Import app credentials where needed instead of __init__
* Rework region selector
* Bump config entry minor and add migration
* Address comments