Commit Graph

56504 Commits

Author SHA1 Message Date
J. Nick Koston
4239923ea2 Fix memory leak in onvif (#83006)
fixes https://github.com/home-assistant/core/issues/82504
2022-11-30 21:40:59 +01:00
Allen Porter
532ab12a48 Local calendar integration (#79601) 2022-11-30 21:20:21 +01:00
Artem Draft
8acc114cd9 Fix BraviaTV fake reauthentication (#82986) 2022-11-30 21:08:15 +01:00
Shay Levy
0d00e9c2d0 Fix Shelly addon analog input sensor (#83005) 2022-11-30 21:01:34 +01:00
puddly
7f96fbb035 Bump ZHA dependencies (#82999) 2022-11-30 20:56:07 +01:00
Robert Svensson
182c4bbc05 Bump aiounifi to v42 (#82995) 2022-11-30 19:04:14 +01:00
Matthias Alphart
a43d944309 Address late KNX flow tests review (#82975)
* KNX flow tests review

* patch out async_setup_entry in options-flow tests

* remove unneeded hass.async_block_till_done()

* Update test_config_flow.py

* autouse setup mock

* patch out async_setup too

* rename fixture according to pytest docs

* test call count to async_setup_entry

* dict access instead of .get()
2022-11-30 18:54:06 +01:00
Willem-Jan van Rootselaar
949dede16b Add support for BSBLAN firmware v3 (#82288)
* bump python-bsblan version to 0.5.8

* add static_state

this holds values that only needs retrieving once in a while

* update diagnostics  json with the right info
2022-11-30 16:36:33 +01:00
Nyro
cad04bff99 Use same Overkiz (Atlantic) climate entity for 2 different ui widget name (#82955)
* Use same overkiz entity for 2 different ui widget name

* Update homeassistant/components/overkiz/climate_entities/__init__.py

Co-authored-by: Mick Vleeshouwer <mick@imick.nl>

Co-authored-by: Mick Vleeshouwer <mick@imick.nl>
2022-11-30 16:32:07 +01:00
Kevin Stillhammer
dffdc78915 Make HERETravelTimeSensor extend RestoreSensor (#82400) 2022-11-30 16:13:11 +01:00
epenet
a12568440d Adjust precipitation unit in tomorrowio (#82982)
Adjust precipitation_unit in tomorrowio
2022-11-30 16:04:37 +01:00
epenet
5599ab6e4a Use OptionsFlowWithConfigEntry in bmw connected drive (#82904) 2022-11-30 15:02:21 +01:00
epenet
5be961f07f Use SchemaOptionsFlowHandler in blink (#82903)
* Use SchemaOptionsFlowHandler in blink

* Use config entry update listener

* Adjust tests

* Simplify options init

* Don't reload

* Use selector
2022-11-30 14:59:26 +01:00
Jan Bouwhuis
89a7d5fecc Update codeowners for mqtt integration (#82979)
Add @jbouwh to codeowners
2022-11-30 14:55:31 +01:00
epenet
cbf8a41eed Add ability to edit sensors in scrape config flow (#82926)
* Add ability to edit sensors in scrape config flow

* Fix docstring

* Update homeassistant/components/scrape/config_flow.py

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

* docstring

Co-authored-by: Erik Montnemery <erik@montnemery.com>
2022-11-30 14:16:28 +01:00
epenet
92fef0f2ba Improve resource validation in scrape config flow (#82965)
* Improve resource validation in scrape

* Coverage
2022-11-30 14:05:01 +01:00
Shay Levy
cd2bb292ab Address late review of Switcher button (#82981) 2022-11-30 13:32:45 +01:00
Jan Bouwhuis
f180f15bde Cleanup removed mqtt fan speed config variables (#82978) 2022-11-30 13:14:41 +01:00
Christopher McCurdy
4167edc52d Create a UUID from given LG soundbar device name (#81918)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Fixes https://github.com/home-assistant/core/issues/77524
fixes undefined
2022-11-30 12:53:49 +01:00
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