Commit Graph

49454 Commits (c0da6b822ea93efe5118892b730d594092aea345)

Author SHA1 Message Date
J. Nick Koston e60313628f
Add a cancel message to the aiohttp compatiblity layer (#97058) 2023-07-22 17:06:32 -05:00
Marc Mueller fe0fe19be9
Use datetime.UTC alias [3.11] (#97067) 2023-07-22 17:05:11 -05:00
Marc Mueller 77f38e33e5
Import names from typing instead of typing_extensions [3.11] (#97065) 2023-07-22 17:03:44 -05:00
J. Nick Koston 7c55dbdb17
Bump aiohomekit to 2.6.11 (#97061) 2023-07-22 16:47:13 -05:00
Franck Nijhof ce1f5f997e
Drop Python 3.10 support (#97007) 2023-07-22 23:03:45 +02:00
Jan Bouwhuis 9424d11408
Allow homeassistant in MQTT configuration_url schema (#96107) 2023-07-22 22:50:58 +02:00
J. Nick Koston 75f3054cc2
Bump aiohomekit to 2.6.10 (#97057) 2023-07-22 13:34:36 -05:00
Jan Bouwhuis 9a5774a95d
Apply common entity schema for MQTT Scene (#96949) 2023-07-22 18:00:27 +02:00
Joost Lekkerkerker d4f301f4a3
Migrate Tolo to entity name (#96244) 2023-07-22 17:39:11 +02:00
Erik Montnemery a8d77cc5ad
Teach zwave_js device trigger about entity registry ids (#96303) 2023-07-22 17:29:24 +02:00
Joost Lekkerkerker 77f2eb0ac9
Add entity translations to Subaru (#96186) 2023-07-22 17:29:04 +02:00
Ståle Storø Hauknes 9a5fe9f644
Airthings BLE: Improve supported devices (#95883) 2023-07-22 17:24:06 +02:00
Christopher Fenner e68832a889
Fix Vicare cleanup token file on uninstall (#95992) 2023-07-22 17:23:01 +02:00
Maciej Bieniek 5249660a6a
Add `uv_index` to AccuWeather weather entity (#97015) 2023-07-22 17:11:39 +02:00
Joost Lekkerkerker 15c52e67a0
Clean up Enphase Envoy const file (#95536) 2023-07-22 16:59:15 +02:00
Joost Lekkerkerker 44803e1177
Migrate Uptimerobot to has entity name (#96770) 2023-07-22 16:55:05 +02:00
Joost Lekkerkerker 13fd5a59e3
Clean up Vilfo const file (#95543) 2023-07-22 16:33:06 +02:00
Joost Lekkerkerker 9ca288858b
Add entity translations to IntelliFire (#95466) 2023-07-22 16:31:36 +02:00
Joost Lekkerkerker 11fd43b1fc
Add entity translations to Wiz (#96826) 2023-07-22 16:28:48 +02:00
Joost Lekkerkerker 47426e50d3
Add entity translations to Modern Forms (#95738) 2023-07-22 16:19:37 +02:00
Joost Lekkerkerker d708c159e7
Add entity translations to iCloud (#95461) 2023-07-22 16:16:39 +02:00
Joost Lekkerkerker fe0d33d97c
Move Aseko coordinator to separate file (#95120) 2023-07-22 16:12:28 +02:00
Joost Lekkerkerker e2fdc6a98b
Add entity translations for Ondilo Ico (#95809) 2023-07-22 13:16:07 +02:00
J. Nick Koston 24b9bde9e5
Fix duplicate and missing decorators in ESPHome Bluetooth client (#97027) 2023-07-22 13:10:41 +02:00
Joost Lekkerkerker 123cf07920
Clean up fitbit const (#95545) 2023-07-22 13:07:34 +02:00
Joost Lekkerkerker fb460d343e
Add upload date to Youtube state attributes (#96976) 2023-07-22 12:45:55 +02:00
Joost Lekkerkerker 8495da1964
Add entity translations for PoolSense (#95814) 2023-07-22 12:43:51 +02:00
J. Nick Koston 52ab6b0b9d
Bump httpcore to 0.17.3 (#97032) 2023-07-21 19:15:28 -05:00
J. Nick Koston 2c4e4428e9
Decouple more of ESPHome Bluetooth support (#96502)
* Decouple more of ESPHome Bluetooth support

The goal is to be able to move more of this into an external library

* Decouple more of ESPHome Bluetooth support

The goal is to be able to move more of this into an external library

* Decouple more of ESPHome Bluetooth support

The goal is to be able to move more of this into an external library

* Decouple more of ESPHome Bluetooth support

The goal is to be able to move more of this into an external library

* Decouple more of ESPHome Bluetooth support

The goal is to be able to move more of this into an external library

* fix diag

* remove need for hass in the client

* refactor

* decouple more

* decouple more

* decouple more

* decouple more

* decouple more

* remove unreachable code

* remove unreachable code
2023-07-21 16:41:50 -04:00
Michael facd6ef765
Display current version in common format in AVM Fritz!Tools (#96424) 2023-07-21 21:58:18 +02:00
J. Nick Koston 7814ce06f4
Fix ESPHome bluetooth client cancel behavior when device unexpectedly disconnects (#96918) 2023-07-21 13:44:13 -05:00
J. Nick Koston 0b0f072faf
Bump aioesphomeapi to 15.1.14 (#97019)
changelog: https://github.com/esphome/aioesphomeapi/compare/v15.1.13...v15.1.14
2023-07-21 13:05:46 -04:00
G Johansson 4e30056830
Add new Forecasting to Weather (#75219)
* Add new Forecasting to Weather

* Add is_daytime for forecast_twice_daily

* Fix test

* Fix demo test

* Adjust tests

* Fix typing

* Add demo

* Mod demo more realistic

* Fix test

* Remove one weather

* Fix weather example

* kitchen_sink

* Reverse demo partially

* mod kitchen sink

* Fix twice_daily

* kitchen_sink

* Add test weathers

* Add twice daily to demo

* dt_util

* Fix names

* Expose forecast via WS instead of as state attributes

* Regularly update demo + kitchen_sink weather forecasts

* Run linters

* Fix rebase mistake

* Improve demo test coverage

* Improve weather test coverage

* Exclude kitchen_sink weather from test coverage

* Rename async_update_forecast to async_update_listeners

* Add async_has_listeners helper

* Revert "Add async_has_listeners helper"

This reverts commit 52af3664bb06d9feac2c5ff963ee0022077c23ba.

* Fix rebase mistake

---------

Co-authored-by: Erik <erik@montnemery.com>
2023-07-21 17:30:48 +02:00
Maciej Bieniek 9f98a418cd
Add new sensors for Shelly Pro 3EM (#97006)
* Add new sensors

* Fix typo
2023-07-21 18:18:14 +03:00
Franck Nijhof 530556015f
Use walrus in event entity last event attributes (#97005) 2023-07-21 15:32:27 +02:00
rappenze 9434a64b87
Update pyfibaro dependency (#97004) 2023-07-21 09:22:45 -04:00
Joost Lekkerkerker 9954208d3a
Move OpenSky constants to separate const file (#97013) 2023-07-21 15:20:24 +02:00
Maciej Bieniek 2e156e56bf
Create an issue if Shelly TRV is not calibrated (#96952)
* Create issue if Shelly Valve is not calibrated

* Add test

* Improve test

* Improve issue description

* Restart -> reboot
2023-07-21 14:20:03 +02:00
G Johansson 58ce357870
Add uv_index to Weather Entity (#96951)
* Add uv_index to Weather Entity

* translation

* Update homeassistant/components/weather/__init__.py

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>

---------

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2023-07-21 14:07:10 +02:00
karwosts 9b0d4c8c03
Fix a translation bug for water price issue (#96958) 2023-07-21 13:00:18 +02:00
Jan Bouwhuis 447fbf58c9
Change naming of MQTT entities to correspond with HA guidelines (#95159)
* Set has_entity_name if device_name is set

* revert unneeded formatting change

* Add image platform

* Follow up comment

* Don't set `has_entity_name` without device name

* Only set has_entity_name if a valid name is set

* Follow device_class name and add tests

* Follow up comments add extra tests

* Move to helper - Log a warning

* fix test

* Allow to assign None as name explictly

* Refactor

* Log info messages when device name is not set

* Revert scene schema change - no device link

* Always set has_entity_name with device mapping

* Always set `_attr_has_entity_name`

* Cleanup
2023-07-21 12:52:10 +02:00
Franck Nijhof 747f4d4a73
Add event entity (#96797) 2023-07-21 12:16:35 +02:00
Renier Moorcroft 4916351d9a
Add EZVIZ AlarmControlPanelEntity (#96602)
* Add ezviz alarm panel

---------

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
Co-authored-by: Joakim Plate <elupus@ecce.se>
2023-07-21 12:01:02 +02:00
Joost Lekkerkerker 33c2fc008a
Add diagnostics to YouTube (#96975) 2023-07-21 11:58:49 +02:00
Joost Lekkerkerker 52313bfce5
Clean up Ombi const file (#95541) 2023-07-21 11:55:31 +02:00
Joost Lekkerkerker 4fa9f25e38
Clean up logi circle const (#95540) 2023-07-21 10:03:49 +02:00
Joost Lekkerkerker d935c18f38
Add entity translations to Daikin (#95181) 2023-07-21 10:02:05 +02:00
Joost Lekkerkerker e9eb8a4754
Remove stateclass from Systemmonitor process sensor (#96973)
Remove stateclass
2023-07-21 09:00:04 +02:00
J. Nick Koston e2394b34bd
Cache version compare in update entity (#96978) 2023-07-21 08:56:34 +02:00
Michael Davie 92eaef9b18
Bump env_canada to v0.5.36 (#96987) 2023-07-21 08:54:57 +02:00
Ernst Klamer 4e964c3819
Bump xiaomi-ble to 0.19.1 (#96967)
* Bump xiaomi-ble to 0.19.0

* Bump xiaomi-ble to 0.19.1

---------

Co-authored-by: J. Nick Koston <nick@koston.org>
2023-07-21 00:13:56 -05:00
J. Nick Koston 28ff173f16
Only lookup hostname/ip_address/mac_address once in device_tracker (#96984) 2023-07-21 00:07:06 -05:00
Jan Bouwhuis b504665b56
Do not override extra_state_attributes property for MqttEntity (#96890) 2023-07-21 06:35:58 +02:00
J. Nick Koston c067c52cf4
Fix translation key in profiler integration (#96979) 2023-07-20 21:40:38 -05:00
J. Nick Koston 9fba6870fe
Fix task leak on config entry unload/retry (#96981)
Since the task was added to self._tasks without a `task.add_done_callback(self._tasks.remove)`
each unload/retry would leak a new set of tasks
2023-07-20 21:00:07 -04:00
J. Nick Koston 99def97ed9
Add cancel messages to core task cancelation (#96972) 2023-07-20 18:03:36 -05:00
J. Nick Koston 6818cae072
Bump aioesphomeapi to 15.1.13 (#96964) 2023-07-20 16:05:17 -05:00
Franck Nijhof e9a63b7501
Use default icon for demo button entity (#96961) 2023-07-20 23:02:59 +02:00
J. Nick Koston b7bcc1eae4
Bump yalexs-ble to 2.2.3 (#96927) 2023-07-20 22:20:15 +02:00
J. Nick Koston 2a13515759
Bump aiohomekit to 2.6.9 (#96956) 2023-07-20 13:18:33 -05:00
Brandon Rothweiler da5cba8083
Upgrade pymazda to 0.3.10 (#96954) 2023-07-20 13:16:08 -05:00
Franck Nijhof c99adf54b4
Update aiohttp to 3.8.5 (#96945) 2023-07-20 16:11:14 +02:00
Joost Lekkerkerker fff254e0dc
Avoid using name in Subaru migrations (#96221)
* Avoid using name in Subaru migrations

* Add feedback

* Update tests/components/subaru/test_sensor.py

Co-authored-by: G Johansson <goran.johansson@shiftit.se>

* Update tests/components/subaru/test_sensor.py

Co-authored-by: G-Two <7310260+G-Two@users.noreply.github.com>

---------

Co-authored-by: G Johansson <goran.johansson@shiftit.se>
Co-authored-by: G-Two <7310260+G-Two@users.noreply.github.com>
2023-07-20 14:45:07 +02:00
Jonathan Jogenfors a381ceed86
Add custom bypass night arming to SIA alarm codes (#95736)
* Add SIA codes for night arming with custom bypass

* Set night custom bypass to ARMED_CUSTOM_BYPASS
2023-07-20 14:43:38 +02:00
Erik Montnemery f809ce9033
Update bind_hass docstring to discourage its use (#96933) 2023-07-20 13:34:24 +02:00
Maciej Bieniek db83dc9acc
Create an issue if push updates fail for Shelly gen1 devices (#96910)
* Create an issue if push updates fail

* Improve strings

* Delete the issue when reloading configuration entry

* Change MAX_PUSH_UPDATE_FAILURES to 5

* Improve issue strings

* Add test

* Use for

* Update homeassistant/components/shelly/strings.json

Co-authored-by: Charles Garwood <cgarwood@newdealmultimedia.com>

* Simplify deleting the issue

---------

Co-authored-by: Charles Garwood <cgarwood@newdealmultimedia.com>
2023-07-20 13:11:05 +02:00
RoboMagus c433b251fa
Shell command response (#96695)
* Add service response to shell_commands

* Add shell_command response tests

* Fix mypy

* Return empty dict instead of None on error

* Improved response type hint

* Cleanup after removing type cast

* Raise exceptions i.s.o. returning

* Fix ruff
2023-07-20 11:53:57 +02:00
Joost Lekkerkerker 0ba2531ca4
Fix bug in check_config when an integration is removed by its own validator (#96068)
* Raise if present is False

* Fix feedback

* Update homeassistant/helpers/check_config.py

Co-authored-by: Erik Montnemery <erik@montnemery.com>

* Update homeassistant/helpers/check_config.py

Co-authored-by: Erik Montnemery <erik@montnemery.com>

* Fix tests

---------

Co-authored-by: Erik Montnemery <erik@montnemery.com>
2023-07-20 11:45:44 +02:00
G Johansson 4e2b00a443
Refactor SQL with ManualTriggerEntity (#95116)
* First go

* Finalize sensor

* Add tests

* Remove not need _attr_name

* device_class

* _process_manual_data allow Any as value
2023-07-20 11:35:08 +02:00
G Johansson 3fbdf4a184
Fix timer switch in Sensibo (#96911) 2023-07-20 11:27:30 +02:00
Dmitry Vasilyev effa90272d
Support Tuya Air Conditioner Mate (WiFi) - Smart IR socket with power monitoring (#95027)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2023-07-20 11:16:38 +02:00
Joost Lekkerkerker 34e30570c1
Migrate airtouch 4 to use has entity name (#96356) 2023-07-20 11:15:54 +02:00
Erik Montnemery fa0d68b1d7
Add NumberDeviceClass.DURATION (#96932) 2023-07-20 11:10:03 +02:00
G Johansson db76bf3a9f
Implement coordinator in Trafikverket Train (#96916)
* Implement coordinator TVT

* Review comments

* Review changes
2023-07-20 10:40:34 +02:00
Renier Moorcroft 4e460f71f8
Add EZVIZ BinarySensorEntity proper names and translation key (#95698)
* Update binary_sensor.py

* Add proper naming and translation keys

* Apply suggestions from code review

Co-authored-by: G Johansson <goran.johansson@shiftit.se>

* Fix strings after merge.

---------

Co-authored-by: G Johansson <goran.johansson@shiftit.se>
2023-07-20 10:35:06 +02:00
Blastoise186 ce0027a84e
Upgrade yt-dlp to fix security issue (#96453)
* Bump yt-dlp from 2023.3.4 to 2023.7.6

Bumps [yt-dlp](https://github.com/yt-dlp/yt-dlp) from 2023.3.4 to 2023.7.6.
- [Release notes](https://github.com/yt-dlp/yt-dlp/releases)
- [Changelog](https://github.com/yt-dlp/yt-dlp/blob/master/Changelog.md)
- [Commits](https://github.com/yt-dlp/yt-dlp/compare/2023.03.04...2023.07.06)

---
updated-dependencies:
- dependency-name: yt-dlp
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump yt-dlp to 2023.7.6

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-20 10:21:52 +02:00
quthla df19d4fd15
Ensure androidtv_remote does not block startup of HA (#96582)
* Ensure androidtv_remote does not block startup of HA

* Fix lint

* Use asyncio.wait_for

* Update homeassistant/components/androidtv_remote/__init__.py

Co-authored-by: Erik Montnemery <erik@montnemery.com>

* Update homeassistant/components/androidtv_remote/__init__.py

Co-authored-by: Erik Montnemery <erik@montnemery.com>

* Fix lint

* Lint

* Update __init__.py

---------

Co-authored-by: Erik Montnemery <erik@montnemery.com>
2023-07-20 10:07:03 +02:00
Eric Severance 5ffffd8dbc
Fully unload wemo config entry (#96620)
* Fully unload wemo config entity

* Test reloading the config entry

* Encapsulate data with dataclasses

* Fix missing test coverage

* Replace if with assert for options that are always set

* Move WemoData/WemoConfigEntryData to models.py

* Use _ to indicate unused argument

* Test that the entry and entity work after reloading

* Nit: Slight test reordering

* Reset the correct mock (get_state)

* from .const import DOMAIN

* Nit: _async_wemo_data -> async_wemo_data; not module private
2023-07-20 10:06:16 +02:00
Ernst Klamer 0349e47372
Add support for MiScale V2 (#96807)
* Add support for MiScale V2

* Add icon to impedance

* Reduce mass sensors
2023-07-20 10:01:19 +02:00
J. Nick Koston 660c95d784
Pre-split unifiprotect nested attribute lookups (#96862)
* Pre-split unifiprotect nested attribute lookups

replaces and closes #96631

* Pre-split unifiprotect nested attribute lookups

replaces and closes #96631

* comments
2023-07-20 09:59:17 +02:00
Tim 9da155955a
Transport NSW: Set DeviceClass and StateClass (#96928)
* 2023.7.16
- Fix bug with values defaulting to "n/a" in stead of None

* 2023.7.16
- Set device class and state classes on entities

* 2023.7.16
- Set StateClass and DeviceClass directly on the entitiy

* 2023.7.16
- Fix black and ruff issues

* 2023.7.17
- Update logic catering for the 'n/a' response on an API failure
- Add testcase

* - Fix bug in formatting

* 2023.7.17
- Refacotr to consider the "n/a" response returned from the Python lib
on an error or faliure
- Remove setting of StateClass and DeviceClass as requested
- Add "n/a" test case

* 2023.7.17
- Remove unused imports

* 2023.7.18
- Apply review requested changes

* - Additional review change resolved

* Add State and Device class attributes
2023-07-20 08:35:26 +02:00
Renier Moorcroft 822d840f81
EZVIZ NumberEntity async added to hass (#96930)
Update number.py
2023-07-20 08:25:54 +02:00
J. Nick Koston 6bb81b862c
Add a message to the config entry cancel call (#96925) 2023-07-19 19:22:38 -05:00
J. Nick Koston 955bed0128
Bump aioesphomeapi to 15.1.12 (#96924) 2023-07-19 18:39:50 -05:00
J. Nick Koston f310d6ca58
Bump bleak-retry-connector to 3.1.0 (#96917) 2023-07-19 17:04:46 -05:00
Joakim Plate daa53118b3
Correct invalid docstring in gardena button (#96922) 2023-07-19 23:58:31 +02:00
Guy Martin deafdc3005
Allow match quirk_class of custom quirks to ZHA (#93268)
* Allow matching custom quirks when self.quirk_classes might not contain the full class path but only the module and the class.

* Add test for matching custom quirk classes.
2023-07-19 16:11:05 -04:00
Joost Lekkerkerker 0f4c71f993
Handle nullable context in Spotify (#96913) 2023-07-19 20:37:33 +02:00
J. Nick Koston 29aa89bea0
Add lightweight API to get core state (#96860) 2023-07-19 20:31:48 +02:00
mkmer 39b242f154
Bump AIOSomecomfort to 0.0.15 in Honeywell (#96904) 2023-07-19 20:30:39 +02:00
J. Nick Koston dae264f79e
Fix websocket_api _state_diff_event using json_encoder_default (#96905) 2023-07-19 18:22:43 +02:00
steffenrapp c80085367d
Fix typo in Nuki integration (#96908) 2023-07-19 17:55:41 +02:00
mkmer 3b501fd2d7
Add username to Reauth flow in Honeywell (#96850)
* pre-populate username/password on reauth

* Update homeassistant/components/honeywell/config_flow.py

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>

* Use add_suggested_value_to_schema

* Optimize code

---------

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2023-07-19 15:25:10 +02:00
Franck Nijhof e449f8e0e5
Remove Reolink event connection sensor (#96903) 2023-07-19 14:40:00 +02:00
Franck Nijhof 0502879d10
Update PyJWT to 2.8.0 (#96899) 2023-07-19 14:35:54 +02:00
Franck Nijhof a305a9fe9c
Update sentry-sdk to 1.28.1 (#96898) 2023-07-19 13:50:28 +02:00
Renier Moorcroft 33b3b8947a
Add Ezviz SensorEntity name and translation (#95697)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2023-07-19 13:26:11 +02:00
Erik Montnemery f0953dde95
Add comment to EntityPlatform._async_add_entity about update_before_add (#96891) 2023-07-19 13:07:23 +02:00
Joost Lekkerkerker efbd82b5fb
Add entity translations to Tuya (#96842) 2023-07-19 12:43:15 +02:00
Joost Lekkerkerker 6ffb1c3c2d
Remove version string from Ecowitt name (#96498)
* Remove version string from station name

* Use model as name
2023-07-19 11:19:57 +02:00