Commit Graph

52258 Commits (11a19c2612f9704721c14ea4300c76257a75e468)

Author SHA1 Message Date
Franck Nijhof 11e7ddaa71
Plugwise prefer use of Adam instead of Anna (#75161)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-07-20 11:58:17 +02:00
Franck Nijhof 460837e453
Allow account linking to phase out services (#75447) 2022-07-20 11:43:46 +02:00
Franck Nijhof fe97f6791d
Map % RH unit in Tuya sensors (#75483) 2022-07-20 11:40:34 +02:00
Franck Nijhof 2db8b154c9
Update orjson to 3.7.8 (#75484) 2022-07-20 11:39:07 +02:00
Franck Nijhof 93425b0e4d
Migrate Plugwise to new entity naming style (#75109) 2022-07-20 11:38:00 +02:00
Franck Nijhof 05d2b955ee
Migrate CPUSpeed to new entity naming style (#75080) 2022-07-20 11:31:17 +02:00
Franck Nijhof b62ebbe974
Migrate DSMR to new entity naming style (#75077) 2022-07-20 11:30:08 +02:00
Franck Nijhof 0e59e8b925
Migrate Moon to new entity naming style (#75085) 2022-07-20 11:24:15 +02:00
Aaron Bach 3d31e62683
Modify Ridwell to store a single dataclass in `hass.data` (#75457) 2022-07-20 11:18:26 +02:00
Aaron Bach 2b752355d6
Modify Tile to store a single dataclass in `hass.data` (#75459) 2022-07-20 11:15:30 +02:00
Raman Gupta 8c7e329754
Bump pytomorrowio to 0.3.4 (#75478) 2022-07-20 09:15:36 +02:00
uvjustin d989e4373d
Remove websocket_api send_big_result (#75452) 2022-07-19 21:08:11 -07:00
Marc Mueller 51ed9ee59d
Fix bluetooth service_info typing (#75477)
* Fix bluetooth service_info typing

* Remove additional type ignores

* Remove pylint disable
2022-07-20 05:46:18 +02:00
Marc Mueller 8a48d54951
Improve entity_platform helper typing (#75464)
* Improve entity_platform helper typing

* Add protocol class

* Apply suggestions from code review

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-07-20 05:45:57 +02:00
J. Nick Koston 0f81d1d14a
Drop RSSI update workaround from bluetooth on linux (#75467)
It turns out we do not need these are we can check the discovered
device list to see if bluez is still seeing the device
2022-07-20 04:14:31 +02:00
Marc Mueller 1626c53c13
Improve dispatcher helper typing (#75455)
* Improve dispatcher helper typing

* Code review
2022-07-20 04:11:46 +02:00
Marc Mueller 1a1eeb2274
Allow for subclass typing with StatisticsBase (#75476) 2022-07-20 04:02:03 +02:00
Marc Mueller 3193ea3359
Fix type narrowing in energy integration (#75462) 2022-07-20 04:00:14 +02:00
mkmer 07b4d48e7c
Disable Aladdin Connect battery_level by default (#75441)
* Disable battery_level by default

* Removed async_setup_compnent, renamed constant.
2022-07-20 03:23:14 +02:00
Marc Mueller d09fff595c
Rename existing TypeVars referencing Self type (#75473) 2022-07-20 03:03:22 +02:00
Marc Mueller b04c3e9adc
Improve deprecation helper typing (#75453) 2022-07-20 02:54:46 +02:00
Marc Mueller 672883e19d
Remove old type casting in esphome (#75475) 2022-07-20 02:50:37 +02:00
GitHub Action c29bd48373 [ci skip] Translation update 2022-07-20 00:22:51 +00:00
Marc Mueller 503e88642e
Update pyupgrade to 2.37.2 (#75456) 2022-07-19 21:06:18 +02:00
Teemu R e4f6f738e8
Bump python-miio to 0.5.12 (#75415)
* Bump python-miio to 0.5.12

* Fix imports
2022-07-19 18:56:41 +02:00
Marc Mueller e02a24529f
Update mypy to 0.971 (#75450) 2022-07-19 18:53:19 +02:00
J. Nick Koston 32311f240b
Avoid converting discovery_info dataclasses to dict that will be thrown away in config flows (#75451)
* Avoid converting BluetoothServiceInfo to a dict for default discovery

Fixes
```
2022-07-19 09:46:48.303 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/Users/bdraco/home-assistant/homeassistant/helpers/discovery_flow.py", line 74, in _async_process_pending_flows
    await gather_with_concurrency(
  File "/Users/bdraco/home-assistant/homeassistant/util/async_.py", line 201, in gather_with_concurrency
    return await gather(
  File "/Users/bdraco/home-assistant/homeassistant/util/async_.py", line 199, in sem_task
    return await task
  File "/Users/bdraco/home-assistant/homeassistant/data_entry_flow.py", line 222, in async_init
    flow, result = await task
  File "/Users/bdraco/home-assistant/homeassistant/data_entry_flow.py", line 249, in _async_init
    result = await self._async_handle_step(flow, flow.init_step, data, init_done)
  File "/Users/bdraco/home-assistant/homeassistant/data_entry_flow.py", line 359, in _async_handle_step
    result: FlowResult = await getattr(flow, method)(user_input)
  File "/Users/bdraco/home-assistant/homeassistant/config_entries.py", line 1484, in async_step_bluetooth
    return await self.async_step_discovery(dataclasses.asdict(discovery_info))
  File "/opt/homebrew/Cellar/python@3.10/3.10.5/Frameworks/Python.framework/Versions/3.10/lib/python3.10/dataclasses.py", line 1239, in asdict
    return _asdict_inner(obj, dict_factory)
  File "/opt/homebrew/Cellar/python@3.10/3.10.5/Frameworks/Python.framework/Versions/3.10/lib/python3.10/dataclasses.py", line 1246, in _asdict_inner
    value = _asdict_inner(getattr(obj, f.name), dict_factory)
  File "/opt/homebrew/Cellar/python@3.10/3.10.5/Frameworks/Python.framework/Versions/3.10/lib/python3.10/dataclasses.py", line 1280, in _asdict_inner
    return copy.deepcopy(obj)
  File "/opt/homebrew/Cellar/python@3.10/3.10.5/Frameworks/Python.framework/Versions/3.10/lib/python3.10/copy.py", line 172, in deepcopy
    y = _reconstruct(x, memo, *rv)
  File "/opt/homebrew/Cellar/python@3.10/3.10.5/Frameworks/Python.framework/Versions/3.10/lib/python3.10/copy.py", line 271, in _reconstruct
    state = deepcopy(state, memo)
  File "/opt/homebrew/Cellar/python@3.10/3.10.5/Frameworks/Python.framework/Versions/3.10/lib/python3.10/copy.py", line 146, in deepcopy
    y = copier(x, memo)
  File "/opt/homebrew/Cellar/python@3.10/3.10.5/Frameworks/Python.framework/Versions/3.10/lib/python3.10/copy.py", line 231, in _deepcopy_dict
    y[deepcopy(key, memo)] = deepcopy(value, memo)
  File "/opt/homebrew/Cellar/python@3.10/3.10.5/Frameworks/Python.framework/Versions/3.10/lib/python3.10/copy.py", line 161, in deepcopy
    rv = reductor(4)
TypeError: Cannot pickle Objective-C objects
```

* Avoid converting BluetoothServiceInfo to a dict for default discovery

Fixes
```
2022-07-19 09:46:48.303 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/Users/bdraco/home-assistant/homeassistant/helpers/discovery_flow.py", line 74, in _async_process_pending_flows
    await gather_with_concurrency(
  File "/Users/bdraco/home-assistant/homeassistant/util/async_.py", line 201, in gather_with_concurrency
    return await gather(
  File "/Users/bdraco/home-assistant/homeassistant/util/async_.py", line 199, in sem_task
    return await task
  File "/Users/bdraco/home-assistant/homeassistant/data_entry_flow.py", line 222, in async_init
    flow, result = await task
  File "/Users/bdraco/home-assistant/homeassistant/data_entry_flow.py", line 249, in _async_init
    result = await self._async_handle_step(flow, flow.init_step, data, init_done)
  File "/Users/bdraco/home-assistant/homeassistant/data_entry_flow.py", line 359, in _async_handle_step
    result: FlowResult = await getattr(flow, method)(user_input)
  File "/Users/bdraco/home-assistant/homeassistant/config_entries.py", line 1484, in async_step_bluetooth
    return await self.async_step_discovery(dataclasses.asdict(discovery_info))
  File "/opt/homebrew/Cellar/python@3.10/3.10.5/Frameworks/Python.framework/Versions/3.10/lib/python3.10/dataclasses.py", line 1239, in asdict
    return _asdict_inner(obj, dict_factory)
  File "/opt/homebrew/Cellar/python@3.10/3.10.5/Frameworks/Python.framework/Versions/3.10/lib/python3.10/dataclasses.py", line 1246, in _asdict_inner
    value = _asdict_inner(getattr(obj, f.name), dict_factory)
  File "/opt/homebrew/Cellar/python@3.10/3.10.5/Frameworks/Python.framework/Versions/3.10/lib/python3.10/dataclasses.py", line 1280, in _asdict_inner
    return copy.deepcopy(obj)
  File "/opt/homebrew/Cellar/python@3.10/3.10.5/Frameworks/Python.framework/Versions/3.10/lib/python3.10/copy.py", line 172, in deepcopy
    y = _reconstruct(x, memo, *rv)
  File "/opt/homebrew/Cellar/python@3.10/3.10.5/Frameworks/Python.framework/Versions/3.10/lib/python3.10/copy.py", line 271, in _reconstruct
    state = deepcopy(state, memo)
  File "/opt/homebrew/Cellar/python@3.10/3.10.5/Frameworks/Python.framework/Versions/3.10/lib/python3.10/copy.py", line 146, in deepcopy
    y = copier(x, memo)
  File "/opt/homebrew/Cellar/python@3.10/3.10.5/Frameworks/Python.framework/Versions/3.10/lib/python3.10/copy.py", line 231, in _deepcopy_dict
    y[deepcopy(key, memo)] = deepcopy(value, memo)
  File "/opt/homebrew/Cellar/python@3.10/3.10.5/Frameworks/Python.framework/Versions/3.10/lib/python3.10/copy.py", line 161, in deepcopy
    rv = reductor(4)
TypeError: Cannot pickle Objective-C objects
```
2022-07-19 18:50:30 +02:00
Marc Mueller 5ae5ae5392
Improve debouncer typing (#75436) 2022-07-19 18:35:04 +02:00
Marc Mueller 4b036cbad9
Add typing to pilight Throttle decorator (#75443) 2022-07-19 18:33:53 +02:00
uvjustin 6b60fb9541
Don't use executor in send_big_result (#75427) 2022-07-19 08:40:23 -05:00
Marc Mueller b6d235c0c2
Improve tradfri decorator typing (#75439) 2022-07-19 15:21:17 +02:00
Matrix 25b874a609
Fix yolink leak sensor battery expose (#75423) 2022-07-19 14:05:28 +02:00
Erik Montnemery 403bbda959
Rename resolution_center dismiss to ignore (#75432) 2022-07-19 13:58:39 +02:00
Erik Montnemery c3d536b255
Store creation timestamps for resolution center issues (#75430) 2022-07-19 13:01:39 +02:00
Franck Nijhof 8e8c6e2394
Remove unused ignore file (#75416) 2022-07-18 21:15:22 -07:00
Franck Nijhof 24b3b5fc46
Remove deprecated Senz YAML configuration (#75419) 2022-07-18 21:14:55 -07:00
Franck Nijhof e65018fb85
Clean up deprecated connection class remainders (#75421) 2022-07-18 21:14:41 -07:00
Franck Nijhof d05160a402
Remove deprecated Lyric YAML configuration (#75418) 2022-07-18 21:13:53 -07:00
R0nd a9e9d7b112
Pass context to shopping list events (#75377) 2022-07-18 21:13:12 -07:00
GitHub Action ebabaeb364 [ci skip] Translation update 2022-07-19 00:29:06 +00:00
J. Nick Koston b37f15b1d5
Update bluetooth_le_tracker to use Bleak (#75013)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-07-18 19:16:24 -05:00
J. Nick Koston 41e4b38c3a
Add device and advertisement to BluetoothServiceInfoBleak (#75381) 2022-07-18 17:58:08 -05:00
J. Nick Koston 1354952977
Migrate LIFX to config entry per device (#74316) 2022-07-18 17:56:34 -05:00
mkmer 983bcfa935
Bump AIOAladdinConnect to 0.1.27 (#75400) 2022-07-18 23:41:06 +02:00
Franck Nijhof e75d7dfb75
Update google-cloud-texttospeech to 2.12.0 (#75401) 2022-07-18 23:34:53 +02:00
Robert Hillis 9f33a0d6dd
Migrate Tautulli to new entity naming style (#75382) 2022-07-18 23:22:38 +02:00
stegm 45d1f8bc55
Address late review of kostal plenticore (#75297)
* Changtes from review #64927

* Fix unit tests for number.

* Changes from review.
2022-07-18 23:08:18 +02:00
Brett Adams 5928a7d494
Correct devices in Advantage Air (#75395) 2022-07-18 23:02:58 +02:00
J. Nick Koston 8b912d1d91
Significantly improve BLE reliablity with linux/dbus for HKC (#75410) 2022-07-18 15:28:14 -05:00
Franck Nijhof 7adb0f0ef5
Custom component -> Custom integration (#75404) 2022-07-18 22:10:22 +02:00