Commit Graph

56485 Commits (98f263c28956c0d17bd211d2d39654b01499792c)

Author SHA1 Message Date
epenet 98f263c289
Make SchemaFlowFormStep functions async (#82962)
* Make validate async in SchemaOptionsFlowHandler

* Adjust group

* Adjust tests

* Move all to async

* Adjust integrations

* Missed an integration

* Missed one

* Rebase to fix conflict
2022-11-30 12:26:52 +01:00
Marc Mueller 490aec0b11
Update pylint to 2.15.7 (#82977) 2022-11-30 12:20:18 +01:00
epenet 0316800347
Enforce MediaPlayerState in media-player entities (#78467) 2022-11-30 11:18:49 +01:00
muppet3000 d243da99c7
Bump growattServer to 1.3.0 (#82953)
* Growatt library bump and init tweak (#81951)

* Addressing review comments (#81951)
2022-11-30 10:56:47 +01:00
Joakim Sørensen 2f91e2d6a5
Bump pycfdns from 2.0.0 to 2.0.1 (#82971) 2022-11-30 10:43:53 +01:00
Duco Sebel c2d372dd13
Fix HomeWizard code quality issues (#82973)
* Sort platforms a-z

* Collect all switch entities and load in a single call

* Add test for button press
2022-11-30 10:28:28 +01:00
epenet 663482fb10
Add flow_state to SchemaCommonFlowHandler (#82967)
* Add local_context to SchemaCommonFlowHandler

* Rename to context

* Rename to flow_state
2022-11-30 10:18:57 +01:00
epenet 200f29563a
Enforce MediaPlayerState in group (#78465)
* Enforce MediaPlayerState in group

* Adjust

* Use self._attr_state

* Add warning

* Add group name to logger warning

* Remove logger warning

* Remove duplicate code

* Add type hints to tests

* Improve coverage

* Improve coverage

* suppress ValueError
2022-11-30 10:13:14 +01:00
Matrix b5aac9a1c7
Add entity update condition to yolink (#82970)
add entity update condition
2022-11-30 10:11:02 +01:00
Raman Gupta e88e8862db
Add missing device action string for text (#82963)
Co-authored-by: Franck Nijhof <git@frenck.dev>
2022-11-30 09:40:24 +01:00
Thijs W f2180de7c0
Adjust code comment in Frontier Silicon (#82969) 2022-11-30 09:38:37 +01:00
puddly 8c8994352d
Allow only specific packages to be skipped during startup dependency installation (#82758) 2022-11-30 08:38:52 +01:00
epenet fcf60a3b53
Use SchemaOptionsFlowHandler in buienradar (#82901)
* Use SchemaOptionsFlowHandler in buienradar

* Use NumberSelector

* Add mode and unit of measurement
2022-11-30 08:35:19 +01:00
yeahme49 fb57785ca6
Add Tuya DPCode for fsd (#82792)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2022-11-30 08:11:04 +01:00
J. Nick Koston a28214caec
Fix bluetooth remote connections not picking the best path (#82957) 2022-11-29 19:56:31 -10:00
Christopher Bailey 6c5aa3b8f9
Make UniFI Protect views more versatile (#82928) 2022-11-29 18:49:16 -10:00
Marvin Wichmann 1908feab79
Increase file upload limit to 100 MB (#77117)
* Increase file upload limit to 100 MB

* Remove comment

* Add test and fix chunk processing

* Add test for wrong field

* Add review suggestions

* Use nonlocal and remove unneeded executor task

* Use Janus to process chunk uploading

* Address review comments

* Address review comments #2

* Improve tests

* Fix discovery test

* Fix tests
2022-11-29 20:46:34 -05:00
J. Nick Koston a3ec9529ec
Fix lutron caseta triggers when device fails to setup before startup finishes (#82714)
Refactor the trigger attach so its not dependant on the intergration
being already setup

fixes #82495 & fixes #81999
2022-11-29 20:46:01 -05:00
Aaron Bach 43c8adc5ec
Bump `simplisafe-python` to 2022.11.2 (#82943) 2022-11-29 18:35:35 -07:00
GitHub Action 197e71203b [ci skip] Translation update 2022-11-30 00:26:16 +00:00
Nyro 73cd2636dd
Add Overkiz DomesticHotWaterProduction (#81538)
* Port DomesticHotWaterProduction from HA-Tahoma

* Add new domestic hot water controllable_name

* Update DHWP to detect existing commands instead of devices

* Update homeassistant/components/overkiz/water_heater_entities/domestic_hot_water_production.py

Co-authored-by: Quentame <polletquentin74@me.com>

* Update homeassistant/components/overkiz/water_heater_entities/domestic_hot_water_production.py

Co-authored-by: Quentame <polletquentin74@me.com>

* Improve read states and comment for overkiz DHWP

* Remove DHWP_BOOST_MODES

* Update DHWP to handle more device correctly

* Improve current_temperature for bogus device

* Init overkiz_to_operation_mode for DHWP

* Update command to be correct

* Upgrade pyoverkiz and use new constants for DHWP

* Remove .tow/.package.lock

Co-authored-by: Quentame <polletquentin74@me.com>
2022-11-29 23:08:13 +01:00
Joakim Plate c576a68d33
Upgrade pytest-aiohttp (#82475)
* Upgrade pytest-aiohttp

* Make sure executors, tasks and timers are closed

Some test will trigger warnings on garbage collect, these warnings
spills over into next test.

Some test trigger tasks that raise errors on shutdown, these spill
over into next test.

This is to mimic older pytest-aiohttp and it's behaviour on test
cleanup.

Discussions on similar changes for pytest-aiohttp are here:
https://github.com/pytest-dev/pytest-asyncio/pull/309

* Replace loop with event_loop

* Make sure time is frozen for tests

* Make sure the ConditionType is not async

  /home-assistant/homeassistant/helpers/template.py:2082: RuntimeWarning: coroutine 'AsyncMockMixin._execute_mock_call' was never awaited
    def wrapper(*args, **kwargs):
  Enable tracemalloc to get traceback where the object was allocated.
  See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.

* Increase litejet press tests with a factor 10

The times are simulated anyway, and we can't stop the normal
event from occuring.

* Use async handlers for aiohttp

tests/components/motioneye/test_camera.py::test_get_still_image_from_camera
tests/components/motioneye/test_camera.py::test_get_still_image_from_camera
tests/components/motioneye/test_camera.py::test_get_stream_from_camera
tests/components/motioneye/test_camera.py::test_get_stream_from_camera
tests/components/motioneye/test_camera.py::test_camera_option_stream_url_template
tests/components/motioneye/test_camera.py::test_camera_option_stream_url_template
  /Users/joakim/src/hass/home-assistant/venv/lib/python3.9/site-packages/aiohttp/web_urldispatcher.py:189: DeprecationWarning: Bare functions are deprecated, use async ones
    warnings.warn(

* Switch to freezegun in modbus tests

The tests allowed clock to tick in between steps

* Make sure skybell object are fully mocked

Old tests would trigger attempts to post to could services:

```
DEBUG:aioskybell:HTTP post https://cloud.myskybell.com/api/v3/login/ Request with headers: {'content-type': 'application/json', 'accept': '*/*', 'x-skybell-app-id': 'd2b542c7-a7e4-4e1e-b77d-2b76911c7c46', 'x-skybell-client-id': '1f36a3c0-6dee-4997-a6db-4e1c67338e57'}
```

* Fix sorting that broke after rebase
2022-11-29 22:36:36 +01:00
Erik Montnemery b7652c78ee
Add options flow to enable multiprotocol support on sky connect (#82525) 2022-11-29 16:34:55 -05:00
Aarni Koskela 16fc2972d3
Remove more useless manifest truthiness checks in hassfest (#82914) 2022-11-29 21:57:58 +01:00
Franck Nijhof 205a2ee215
Ensure Abode provides valid device classes (#82929) 2022-11-29 15:37:54 -05:00
Franck Nijhof 368694d6bf
Collection of DeviceClass related typing fixes (#82931) 2022-11-29 14:31:25 -05:00
Jan Bouwhuis 2785b2b52f
Add mqtt text platform (#82884) 2022-11-29 20:31:05 +01:00
Franck Nijhof b4e30c4033
Use SensorDeviceClass enum in KNX (#82947) 2022-11-29 20:29:47 +01:00
Franck Nijhof c36dd17780
Simplify use of binary sensor device classes in MySensors (#82946) 2022-11-29 20:23:57 +01:00
Bram Kragten 573320a0b4
Add country to detect location info (#82941) 2022-11-29 13:52:49 -05:00
Nyro 1c0f9cf941
Add Overkiz Hitachi DHW (#81536)
* Port ha-tahome hitachi dhw

* Use int for setting temperature

* Use value as float when possible

* Use device state for current operation

* Update homeassistant/components/overkiz/water_heater_entities/hitachi_dhw.py

Co-authored-by: Quentame <polletquentin74@me.com>

* Update homeassistant/components/overkiz/water_heater_entities/hitachi_dhw.py

Co-authored-by: Quentame <polletquentin74@me.com>

* Use ON instead of ECO for standard operation mode

Co-authored-by: Quentame <polletquentin74@me.com>
2022-11-29 19:27:05 +01:00
Joakim Sørensen 10e7d6e04d
Add supervisor key to homassistant_alerts (#82862) 2022-11-29 13:22:36 -05:00
Matrix 4ab6f97341
Expose mcu detected temperature & signal (#82905) 2022-11-29 18:41:01 +01:00
epenet c092f2be04
Use new unit enums in weather integrations (#82938) 2022-11-29 18:13:05 +01:00
epenet 4ad9633dfb
Use new unit enums in weather entity (#82937) 2022-11-29 18:10:31 +01:00
Matthias Alphart 0561c14d53
Add `text` platform for KNX (#82811) 2022-11-29 18:05:51 +01:00
Franck Nijhof d769359b4f
Remove invalid custom device class from MinutPoint sound sensor (#82934) 2022-11-29 17:22:01 +01:00
epenet db9e8d2fa1
Use OptionsFlowWithConfigEntry in braviatv (#82902)
* Use OptionsFlowWithConfigEntry in braviatv

* Make use of add_suggested_values_to_schema

* Full coverage
2022-11-29 16:48:51 +01:00
Franck Nijhof a69e0defe6
Use device class enum instead of string (#82935) 2022-11-29 16:40:59 +01:00
epenet 2d7701cab5
Use SchemaOptionsFlowHandler in openuv (#82494)
* Use suggested_values helper in openuv

* Use SchemaOptionsFlowHandler
2022-11-29 16:14:32 +01:00
iridris 2173075004
Bump pycsspeechtts to v1.0.8 (#82922) 2022-11-29 16:06:44 +01:00
Marvin Wichmann 211dd64df1
Update xknx to 2.1.0 (#82930) 2022-11-29 16:03:03 +01:00
Mick Vleeshouwer 9a2b608d85
Bump pyoverkiz to 1.7.1 (#82925) 2022-11-29 16:00:52 +01:00
Franck Nijhof f9364c4e01
Fix 4 misconfigured sensor entity descriptions in Tuya (#82933) 2022-11-29 15:54:48 +01:00
Franck Nijhof a3b346b560
Trigger full CI on Text integration changes (#82907) 2022-11-29 15:49:10 +01:00
Duco Sebel 982966a3d9
Use device_registry for HomeWizard device_info (#82921)
* Use global device and use didentifiers to get device_info

* Remove unused config_entry
2022-11-29 14:30:22 +01:00
Matrix f0b979556c
Add YoLink MultiOutlet support (#82622) 2022-11-29 14:10:38 +01:00
Franck Nijhof 412c12b992
Improve device class handling in ESPHome (#82923) 2022-11-29 14:07:56 +01:00
Franck Nijhof 9805d8a6cc
Fix device class typing in Universal Devices ISY994 (#82924) 2022-11-29 14:07:30 +01:00
north3221 d8a7336a3f
Remove as codeowner for tado (#82919) 2022-11-29 13:58:53 +01:00