* Use ServiceValidationError for fan preset_mode
* Use _valid_preset_mode_or_raise to raise
* Move preset_mode validation to entity component
* Fix bond fan and comments
* Fixes baf, fjaraskupan and template
* More integration adjustments
* Add custom components mock and test code
* Make NotValidPresetModeError subclass
* Update homeassistant/components/fan/strings.json
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Keep bond has_action validation
* Move demo test asserts outside context block
* Follow up comment
* Update homeassistant/components/fan/strings.json
Co-authored-by: G Johansson <goran.johansson@shiftit.se>
* Fix demo tests
* Remove pylint disable
* Remove unreachable code
* Update homeassistant/components/fan/__init__.py
Co-authored-by: G Johansson <goran.johansson@shiftit.se>
* Use NotValidPresetModeError, Final methods
* Address comments
* Correct docst
* Follow up comments
* Update homeassistant/components/fan/__init__.py
Co-authored-by: Erik Montnemery <erik@montnemery.com>
---------
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: G Johansson <goran.johansson@shiftit.se>
Co-authored-by: Erik Montnemery <erik@montnemery.com>
* Send localization info on script errors
* Use connection exception hander
* Keep HomeAssistantError is unknown_error
* Move specific exception handling
* Add support for PECO smart meter
* Add support for PECO smart meter
* Conform to black
* Fix tests and additional clean-up
* Return init file to original state
* Move to FlowResultType
* Catch up to upstream
* Remove commented code
* isort
* Merge smart meter and outage count into one entry
* Test coverage
* Remove logging exceptions from config flow verification
* Fix comments from @emontnemery
* Revert "Add support for PECO smart meter"
This reverts commit 36ca90856684f328e71bc3778fa7aa52a6bde5ca.
* More fixes
* recorder: Apply filter in the outer query too
Function _get_start_time_state_for_entities_stmt() produced a query which
is dead-slow in my installation. On analysis, the outer query produced
millions of rows which had to be joined to the subquery. The subquery has
a filter which would eliminate almost all of the outer rows.
To speed up the query, apply the same filter to the outer query, so way
less rows have to be joined.
This reduced the query time on my system from more than half an hour to
mere milliseconds.
* lint
* merge filter
---------
Co-authored-by: J. Nick Koston <nick@koston.org>
* Bump aioesphomeapi to 19.1.5
changelog: https://github.com/esphome/aioesphomeapi/compare/v19.1.4...v19.1.5
- Removes the need to watch for BLE connection drops with a seperate
future as the library now raises BluetoothConnectionDroppedError when
the connection drops during a BLE operation
* reduce stack
* .6
* tweak
* 19.1.7
* Add tag name to tag scanned event data
* Make name in event data optional, add test cases for events
* Simplify sanity None check of tag data
Co-authored-by: Robert Resch <robert@resch.dev>
* Apply suggestions from code review
---------
Co-authored-by: Robert Resch <robert@resch.dev>
Co-authored-by: Erik Montnemery <erik@montnemery.com>