Commit Graph

39658 Commits (abf67c3153e971a76ee6f4752d9f524a8fc5e822)

Author SHA1 Message Date
J. Nick Koston 85fdc56240
Bump aiosteamist to 0.3.2 (#73976)
Changelog: https://github.com/bdraco/aiosteamist/compare/0.3.1...0.3.2
2022-06-25 16:41:47 +02:00
rappenze eb6afd27b3
Fix fibaro cover state (#73921) 2022-06-25 12:34:30 +02:00
epenet 9eed8b2ef4
Adjust freedompro cover position method (#73945) 2022-06-25 12:32:55 +02:00
epenet 3743d42ade
Adjust smartthings cover type hints (#73948) 2022-06-25 12:31:53 +02:00
epenet 10dc38e0ec
Adjust CoverEntity property type hints in components (#73943)
* Adjust CoverEntity property type hints in components

* Revert changes to rflink

* Revert changes to wilight
2022-06-25 11:59:56 +02:00
J. Nick Koston 55b5ade586
Prime platform.uname cache at startup to fix blocking subprocess in the event loop (#73975)
Prime platform.uname cache at startup to fix blocking subprocess

- Multiple modules check platform.uname()[0] at startup which
  does a blocking subprocess call. We can avoid this happening
  in the eventloop and distrupting startup stability by priming
  the cache ahead of time in the executor
2022-06-25 04:31:44 -04:00
GitHub Action 0166816200 [ci skip] Translation update 2022-06-25 00:24:25 +00:00
avee87 ad3bd6773c
Add device_info to Glances entities (#73047) 2022-06-25 01:23:26 +02:00
Erik Montnemery a267045a31
Migrate open_meteo to native_* (#73910) 2022-06-25 01:05:31 +02:00
epenet 9b88b77b66
Use attributes in wilight (#73898)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2022-06-25 00:55:01 +02:00
epenet 0461eda83b
Adjust demo cover position methods (#73944) 2022-06-25 00:34:49 +02:00
J. Nick Koston 32e0d9f47c
Speed up generation of template states (#73728)
* Speed up generation of template states

* tweak

* cache

* cache hash

* weaken

* Revert "weaken"

This reverts commit 4856f50080.

* lower cache size as it tends to be the same ones over and over

* lower cache size as it tends to be the same ones over and over

* lower cache size as it tends to be the same ones over and over

* cover

* Update homeassistant/helpers/template.py

Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>

* id reuse is possible

* account for iterting all sensors

Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2022-06-24 17:28:26 -04:00
Paulus Schoutsen 57efa9569c
Cache is_supported for Google entities (#73936) 2022-06-24 17:05:36 -04:00
J. Nick Koston 44da543ca0
Bump nexia to 2.0.0 (#73935) 2022-06-24 09:59:41 -05:00
J. Nick Koston 1866a1e925
Handle non-str keys when storing json data (#73958) 2022-06-24 09:59:01 -05:00
epenet b880a05e45
Fix type hints in zha remaining channels (#73778)
* Fix hvac channel type hints

* Fix security channel type hints

* Fix homeautomation channel type hints

* Fix type hints in zha base channel

* Adjust select entity

* Remove unused arg
2022-06-24 10:35:38 -04:00
J. Nick Koston f29cc33fa0
Fix selecting entity_ids and device_ids in events with MySQL and PostgreSQL with logbook (#73918)
* Fix selecting entity_ids and device_ids in events with MySQL and PostgreSQL

Fixes #73818

* add cover
2022-06-24 15:43:35 +02:00
epenet 6cafcb016f
Adjust rfxtrx cover type hints (#73947) 2022-06-24 10:22:40 +02:00
J. Nick Koston 2f78faa718
Make aiohttp mockers aware of the json loads kwarg (#73939) 2022-06-24 08:44:35 +02:00
Rami Mosleh d1708861db
Add config flow for `simplepush` (#73471)
* Add config flow for `simplepush`

* fix warning message

* fix typos

* Add importing yaml config

* patch integration setup

* Add check for errrors raised by the library

* fix coverage

* Adjust comment and logging message

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-06-24 08:39:48 +02:00
epenet a92ab7a669
Adjust CoverEntity function type hints in components (#73912)
Adjust CoverEntity functions in components
2022-06-24 06:40:26 +02:00
Zack Barett 307666da7f
Bump Frontend to 20220624.0 (#73938) 2022-06-23 22:51:31 -05:00
Christopher Bailey e4a770984d
Bump version of pyunifiprotect to 4.0.8 (#73934) 2022-06-23 21:50:39 -05:00
J. Nick Koston e5c40d58ff
Add roku 3820X model to discovery (#73933) 2022-06-23 21:13:43 -05:00
GitHub Action c607994fbe [ci skip] Translation update 2022-06-24 00:23:27 +00:00
Raman Gupta 768e53ac2d
Add zwave_js/get_any_firmware_update_progress WS cmd (#73905) 2022-06-23 20:13:37 -04:00
J. Nick Koston 28dd92d928
Fix logbook state query with postgresql (#73924) 2022-06-23 23:35:10 +02:00
0bmay 3058a432a5
Bump py-canary to 0.5.3 (#73922) 2022-06-23 23:33:03 +02:00
Erik Montnemery 9b8c3e37bb
Improve group tests (#73630) 2022-06-23 21:38:17 +02:00
epenet 186141ee4d
Use attributes in keba locks and binary sensors (#73894)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2022-06-23 21:35:05 +02:00
avee87 8865a58f74
Improve Glances entity descriptions, add long term statistics (#73049) 2022-06-23 21:34:08 +02:00
epenet 0df0533cd4
Use attributes in smarty fan (#73895) 2022-06-23 21:20:42 +02:00
tbertonatti 03f0916e7c
Add embed image parameter for Discord notify (#73474) 2022-06-23 21:02:48 +02:00
Erik Montnemery e57f34f0f2
Migrate openweathermap to native_* (#73913) 2022-06-23 21:01:08 +02:00
J. Nick Koston 00a79635c1
Revert "Remove sqlalchemy lambda_stmt usage from history, logbook, and statistics (#73191)" (#73917) 2022-06-23 13:59:55 -05:00
J. Nick Koston 5c193323b2
Bump aiohomekit to 0.7.18 (#73919)
Changelog: https://github.com/Jc2k/aiohomekit/compare/0.7.17...0.7.18
2022-06-23 20:43:56 +02:00
Erik Montnemery 01606c34aa
Correct handling of weather forecast (#73909) 2022-06-23 20:34:16 +02:00
J. Nick Koston fd9fdc6283
Fix error reporting with unserializable json (#73908) 2022-06-23 20:32:45 +02:00
Robert Svensson b3b4707579
Fix deCONZ group state regression (#73907) 2022-06-23 20:26:51 +02:00
J. Nick Koston edb386c736
Switch frontend to use json helper (#73874) 2022-06-23 20:19:13 +02:00
J. Nick Koston 3d59088a62
Bump sqlalchemy to 1.4.38 (#73916)
Changes: https://docs.sqlalchemy.org/en/14/changelog/changelog_14.html#change-1.4.38
2022-06-23 14:13:42 -04:00
Erik Montnemery 17d839df79
Set codeowner of weather to @home-assistant/core (#73915) 2022-06-23 19:50:46 +02:00
epenet e874ba2a42
Improve CoverEntity typing (#73903) 2022-06-23 16:48:49 +02:00
epenet 3c82c718cb
Improve typing in fans and locks (#73901) 2022-06-23 16:34:40 +02:00
Raman Gupta ff7d840a6c
Bump zwave-js-server-python to 0.39.0 (#73904) 2022-06-23 16:13:36 +02:00
kingy444 95abfb5748
Powerview polling tdbu (#73899) 2022-06-23 08:37:28 -05:00
J. Nick Koston 8015bb98a9
Switch recorder and templates to use json helper (#73876)
- These were using orjson directly, its a bit cleaner
  to use the helper so everything is easier to adjust
  in the future if we need to change anything about
  the loading
2022-06-23 14:32:26 +02:00
J. Nick Koston 2742bf86e3
Switch mqtt to use json helper (#73871)
* Switch mqtt to use json helper

* whitespace
2022-06-23 14:29:09 +02:00
epenet 0787ee1345
Use attributes in comfoconnect fan (#73892) 2022-06-23 12:42:05 +02:00
rikroe b4cc9367cf
Bump bimmer_connected to 0.9.5 (#73888)
Co-authored-by: rikroe <rikroe@users.noreply.github.com>
2022-06-23 12:18:01 +02:00
epenet 48bd7cf5e1
Add missing ToggleEntity type hints in fans (#73887) 2022-06-23 12:01:05 +02:00
epenet a3ce80baed
Improve nuki type hints (#73891) 2022-06-23 11:44:25 +02:00
Paulus Schoutsen 10b083bbf5
Sync empty entities when Google is disabled in cloud (#72806) 2022-06-23 11:41:34 +02:00
Rami Mosleh 0dd181f922
Remove deprecated YAML for Islamic prayer times (#72483) 2022-06-23 11:35:47 +02:00
Hans Oischinger 4ee92f3953
Improve hvac_mode compatibility of vicare (#66454) 2022-06-23 11:34:34 +02:00
G Johansson 90e1fb6ce2
Weather unit conversion (#73441)
Co-authored-by: Erik <erik@montnemery.com>
2022-06-23 10:48:30 +02:00
henryptung bccec77e19
Fix Broadlink discovery for new RM Mini3 (#73822) 2022-06-23 09:38:39 +02:00
gigatexel 303ce715ed
Adapt DSMR integration to changes in dsmr_parser for Belgian/Dutch meters (#73817) 2022-06-23 09:15:16 +02:00
J. Nick Koston 164eba7e5d
Switch loader to use json helper (#73872) 2022-06-22 21:57:38 -05:00
J. Nick Koston b5f6f785d5
Switch mobile_app to use the json helper (#73870) 2022-06-22 22:32:48 -04:00
Christopher Bailey 168065a9a0
Bump version of pyunifiprotect to 4.0.7 (#73875) 2022-06-22 21:10:41 -05:00
J. Nick Koston 6c41a10142
Switch api and event stream to use json helper (#73868) 2022-06-22 20:13:02 -05:00
J. Nick Koston ab30d38469
Switch rest to use the json helper (#73867) 2022-06-22 20:12:48 -05:00
GitHub Action 33c263d09b [ci skip] Translation update 2022-06-23 00:20:13 +00:00
Christian Rodriguez 3ce5b05aa5
Add bypassed custom attribute to NX584ZoneSensor (#71767) 2022-06-23 01:59:59 +02:00
Waldemar Tomme e855529f73
Fix fints integration (#69041) 2022-06-23 01:08:51 +02:00
Alex Groleau fe54db6eb9
Improve Tuya integration fan controller support (#73062) 2022-06-23 00:58:36 +02:00
jjlawren b0f4b3030f
Extend timeouts for Spotify and Plex playback on Sonos (#73803) 2022-06-23 00:58:10 +02:00
Robert Svensson aef69f87f4
More enums in deCONZ Alarm Control Panel (#73800) 2022-06-22 23:02:34 +02:00
Christopher Bailey 01a9367281
UniFi Protect cleanup and enable unadopted devices (#73860) 2022-06-22 15:57:21 -05:00
Robert Hillis 5c5fd746fd
Add digital loggers as a Belkin supported brand (#72515) 2022-06-22 22:38:45 +02:00
Franck Nijhof a8a033681f
Automatically onboard DiscoveryFlows (#73841) 2022-06-22 22:37:49 +02:00
Franck Nijhof ec119ae718
Automatically onboard WLED (#73853) 2022-06-22 22:37:36 +02:00
Franck Nijhof 320ef55085
Automatically onboard Elgato (#73847) 2022-06-22 22:37:25 +02:00
epenet ad7da9803f
Adjust lutron_caseta type hints (#73840)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2022-06-22 22:37:01 +02:00
Khole 73c54b14d0
Hive bump pyhiveapi version (#73846) 2022-06-22 22:20:47 +02:00
epenet 75cfe845e1
Adjust freedompro type hints (#73839) 2022-06-22 22:17:50 +02:00
J. Nick Koston 8b067e83f7
Initial orjson support take 3 (#73849)
* Initial orjson support take 2

Still need to work out problem building wheels

--

Redux of #72754 / #32153 Now possible since the following is solved:
ijl/orjson#220 (comment)

This implements orjson where we use our default encoder.  This does not implement orjson where `ExtendedJSONEncoder` is used as these areas tend to be called far less frequently.  If its desired, this could be done in a followup, but it seemed like a case of diminishing returns (except maybe for large diagnostics files, or traces, but those are not expected to be downloaded frequently).

Areas where this makes a perceptible difference:
- Anything that subscribes to entities (Initial subscribe_entities payload)
- Initial download of registries on first connection / restore
- History queries
- Saving states to the database
- Large logbook queries
- Anything that subscribes to events (appdaemon)

Cavets:
orjson supports serializing dataclasses natively (and much faster) which
eliminates the need to implement `as_dict` in many places
when the data is already in a dataclass. This works
well as long as all the data in the dataclass can also
be serialized. I audited all places where we have an `as_dict`
for a dataclass and found only backups needs to be adjusted (support for `Path` needed to be added for backups).  I was a little bit worried about `SensorExtraStoredData` with `Decimal` but it all seems to work out from since it converts it before it gets to the json encoding cc @dgomes

If it turns out to be a problem we can disable this
with option |= [orjson.OPT_PASSTHROUGH_DATACLASS](https://github.com/ijl/orjson#opt_passthrough_dataclass) and it
will fallback to `as_dict`

Its quite impressive for history queries
<img width="1271" alt="Screen_Shot_2022-05-30_at_23_46_30" src="https://user-images.githubusercontent.com/663432/171145699-661ad9db-d91d-4b2d-9c1a-9d7866c03a73.png">

* use for views as well

* handle UnicodeEncodeError

* tweak

* DRY

* DRY

* not needed

* fix tests

* Update tests/components/http/test_view.py

* Update tests/components/http/test_view.py

* black

* templates
2022-06-22 21:59:51 +02:00
epenet 9ac28d2076
Adjust vesync type hints (#73842) 2022-06-22 21:40:22 +02:00
Martin Hjelmare 0e674fc597
Clean up zwave_js logging and hass.data (#73856) 2022-06-22 21:35:26 +02:00
Franck Nijhof 1ead6d6762
Automatically onboard Yeelight (#73854) 2022-06-22 21:19:34 +02:00
Franck Nijhof 9229d14962
Automatically onboard Wiz (#73851) 2022-06-22 20:17:28 +02:00
jjlawren 8d66623036
Add ZoneGroupState statistics to Sonos diagnostics (#73848) 2022-06-22 12:29:34 -05:00
Christopher Bailey 54d04d233b
Bump version of pyunifiprotect to 4.0.6 (#73843) 2022-06-22 12:13:43 -05:00
Pascal Vizeli 6cf9b22b5a
Python 3.10 / Base image 2022.06.01 (#73830)
* Python 3.10 / Base image 2022.06.01

* Update requirements

* push opencv

* we don't need numpy on core for now

* Remove unused ignore

Co-authored-by: Franck Nijhof <git@frenck.dev>
2022-06-22 12:04:39 -05:00
epenet 6b6e5fad3c
Add missing type hints in fans (#73835) 2022-06-22 18:43:41 +02:00
G Johansson 532e25d087
Sensibo use switch for Pure boost (#73833)
* Initial commit

* Finalize pure boost switch

* Fix service required
2022-06-22 18:26:25 +02:00
epenet 837957d89e
Adjust set_percentage routine in fans (#73837) 2022-06-22 18:22:01 +02:00
jjlawren 86fde1a644
Handle failures during initial Sonos subscription (#73456) 2022-06-22 10:56:17 -05:00
epenet 143e6a7adc
Add missing type hints in locks (#73831) 2022-06-22 10:23:51 -05:00
G Johansson 7a407d09dc
Fix filter & room occupied binary sensors (#73827) 2022-06-22 10:13:16 -05:00
Christopher Bailey 0461ec1566
Fix auth_sign_path with query params (take 2) (#73829) 2022-06-22 10:09:21 -05:00
J. Nick Koston 19b2b33037
Speed up subscribing to mqtt topics on connect (#73685)
* Speed up subscribing to mqtt topics

* update tests

* Remove extra function wrapper

* Recover debug logging for subscriptions

* Small changes and test

* Update homeassistant/components/mqtt/client.py

* Update client.py

Co-authored-by: jbouwh <jan@jbsoft.nl>
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2022-06-22 16:03:18 +02:00
rikroe 54591b8ca1
BMW Connected Drive: Handle HTTP 429 issues better (#73675)
Co-authored-by: rikroe <rikroe@users.noreply.github.com>
2022-06-22 14:24:16 +02:00
epenet 754fe86dd9
Add fan to strict typing (#73820)
* Add fan to strict typing

* Adjust state_attributes

* Adjust capability_attributes

* Adjust is_on

* Adjust vallox component

* Revert "Adjust is_on"

This reverts commit 48d207f250.

* Fix is_on property
2022-06-22 14:15:44 +02:00
epenet 33a84838b4
Fix type hints in zha smartenergy channel (#73775)
* Fix type hints in zha smartenergy channel

* Adjust unit_of_measurement
2022-06-22 07:41:28 -04:00
Franck Nijhof fb2a3ae135
Update sentry-sdk to 1.6.0 (#73819) 2022-06-22 13:39:19 +02:00
uvjustin 03246d2649
Use ha-av instead of av and bump to v10.0.0b3 (#73789)
* Use ha-av instead of av and bump to v10.0.0b1

* Change generic

* Use v10.0.0b2

* Use v10.0.0b3
2022-06-22 13:38:44 +02:00
Christopher Bailey 90ad6ca540
Bumps version of pyunifiprotect to 4.0.5 (#73798) 2022-06-22 10:46:38 +02:00
Jonny Bergdahl 95eb55dd66
Fix thumbnail issues in Twitch integration (#72564)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
Co-authored-by: Franck Nijhof <git@frenck.dev>
2022-06-22 10:22:09 +02:00
Tom Harris 08b69319ca
Insteon bug fixes (#73791) 2022-06-22 10:04:11 +02:00
J. Nick Koston 4bfdc61045
Fix rachio webhook not being unregistered on unload (#73795) 2022-06-22 10:02:02 +02:00
Franck Nijhof 504f4a7acf
Update Fibaro config entry on duplicate entry (#73814) 2022-06-22 09:55:36 +02:00
Franck Nijhof 998e63df61
Fix Plugwise migration error (#73812) 2022-06-22 09:54:35 +02:00
Franck Nijhof 39a00ffe09
Automatically onboard Cast (#73813) 2022-06-22 09:49:54 +02:00
jjlawren 07a46dee39
Additional surround controls for Sonos (#73805) 2022-06-22 09:08:31 +02:00
J. Nick Koston 1e0a3246f4
Revert "Fix auth_sign_path with query params (#73240)" (#73808) 2022-06-21 22:45:16 -05:00
epenet 243905ae3e
Fix cover, light, select, sensor, switch type hints in zha (#73770)
* Fix zha sensor type hints

* Fix zha entity type hints

* Fix switch type hints

* Fix light type hints

* Fix cover type hints

* Fix select type hints
2022-06-21 21:04:24 -04:00
epenet 6c83ed4c9d
Fix api, button and climate type hints in zha (#73771)
* Fix zha api type hints

* Fix zha button type hints

* Fix zha climate type hints
2022-06-21 21:02:08 -04:00
epenet 21275669d5
Fix inheritance in zha general channel (#73774)
Fix general channel type hints in zha
2022-06-21 21:00:58 -04:00
GitHub Action 78dd522ccd [ci skip] Translation update 2022-06-22 00:26:36 +00:00
Erik Montnemery 562ad18fb4
Bump pychromecast to 12.1.4 (#73792) 2022-06-22 00:45:47 +02:00
Erik Montnemery 274f585646
Tweak title of zha config entry created by yellow hw (#73797) 2022-06-21 16:21:31 -04:00
Christopher Bailey 67618311fa
Fix auth_sign_path with query params (#73240)
Co-authored-by: J. Nick Koston <nick@koston.org>
2022-06-21 14:21:47 -05:00
J. Nick Koston adf0f62963
Add websocket api to fetch config entries (#73570)
* Add websocket api to fetch config entries

* add coverage for failure case
2022-06-21 20:09:22 +02:00
Christopher Bailey 9940a85e28
Add sensors for read-only devices for UniFi Protect (#73768) 2022-06-21 12:01:06 -05:00
J. Nick Koston db9c242723
Speed up creating group entities from YAML (#73649)
* Speed up creating group entities from YAML

- Pass all the entities to async_add_entities in one call to
  avoid multiple levels of gather

* Speed up creating group entities from YAML

- Pass all the entities to async_add_entities in one call to
  avoid multiple levels of gather

* Update homeassistant/components/group/__init__.py

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

* Update homeassistant/components/group/__init__.py

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

* Update homeassistant/components/group/__init__.py

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

* Update homeassistant/components/group/__init__.py

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

* typing

* unbreak

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-06-21 18:56:32 +02:00
Christopher Bailey 3823edda32
Add Permission checking for UniFi Protect (#73765)
Co-authored-by: J. Nick Koston <nick@koston.org>
2022-06-21 11:17:29 -05:00
kingy444 a816348616
Powerview dataclass (#73746)
Co-authored-by: J. Nick Koston <nick@koston.org>
2022-06-21 11:12:11 -05:00
rappenze f285b6099a
Code cleanup fibaro sensor (#73388)
* Code cleanup fibaro sensor

* Adjustments based on code review

* Changes from code review, use dict instead of tuple

* Remove unneeded deafult in dict get

* Another variant to create dict
2022-06-21 18:08:47 +02:00
AdmiralStipe efb4b10629
Change Microsoft TTS default and not configurable audio settings from poor 16kHz/128kbit/s to better quality 24kHz/96kbit/s (#73609)
* Update tts.py

* Update tts.py

* Update tts.py
2022-06-21 18:05:16 +02:00
Mick Vleeshouwer 28cc0b9fb2
Expose ThreeWayWindowHandle direction as sensor in Overkiz integration (#73784)
* Expose ThreeWayWindowHandle direction as sensor

* Compile translations
2022-06-21 17:31:26 +02:00
Pascal Vizeli eac7c5f177
Remove deprecated X-Hassio-Key usage (#73783)
* Remove deprecated X-Hassio-Key usage

* ...

* Update const.py

* Update ingress.py

* Update test_ingress.py

Co-authored-by: Ludeeus <ludeeus@ludeeus.dev>
2022-06-21 17:11:20 +02:00
Robert Svensson 27209574d2
Use pydeconz interface controls for lock, scene, siren and switch platforms (#73748) 2022-06-21 16:50:44 +02:00
Allen Porter cf9cab900e
Allow multiple configuration entries for nest integration (#73720)
* Add multiple config entry support for Nest

* Set a config entry unique id based on nest project id

* Add missing translations and remove untested committed

* Remove unnecessary translation

* Remove dead code

* Remove old handling to avoid duplicate error logs
2022-06-21 16:36:13 +02:00
Mick Vleeshouwer a96aa64dd1
Add Somfy to supported brands of Overkiz integration (#73786)
Add Somfy to supported brands
2022-06-21 16:35:22 +02:00
Allen Porter d399815bea
Allow multiple google calendar config entries (#73715)
* Support multiple config entries at once

* Add test coverage for multiple config entries

* Add support for multiple config entries to google config flow

* Clear hass.data when unloading config entry

* Make google config flow defensive against reuse of the same account

* Assign existing google config entries a unique id

* Migrate entities to new unique id format

* Support muliple accounts per oauth client id

* Fix mypy typing errors

* Hard fail to keep state consistent, removing graceful degredation

* Remove invalid entity regsitry entries
2022-06-21 06:42:41 -07:00
Thibaut c674af3ba1
Remove hvac_action for Somfy Thermostat (#73776) 2022-06-21 10:22:06 +02:00
rappenze 4813e6e420
Code cleanup fibaro lock (#73389)
* Code cleanup fibaro lock

* Adjust typings as suggested in code review
2022-06-21 09:55:08 +02:00
J. Nick Koston 9d13252142
Cleanup device callbacks in unifiprotect (#73463) 2022-06-20 22:52:41 -05:00
G Johansson 0007178d63
Add filters and service to Sensibo (#73687) 2022-06-20 22:33:47 -05:00
Christopher Bailey 3851c7b4b4
Bumps version of pyunifiprotect to 4.0.4 (#73722) 2022-06-20 22:09:13 -05:00
GitHub Action 109d1844b3 [ci skip] Translation update 2022-06-21 00:22:51 +00:00
Christopher Bailey b956d125f9
Fix UniFi Protect write rate sensor (#73759) 2022-06-20 19:10:59 -05:00
epenet 4bc1314499
Fix REPORT_CONFIG type hint in zha (#73762)
Fix REPORT_CONFIG type hint
2022-06-20 18:32:32 -04:00
Nate Harris 55eca2e2b4
Bump pycketcasts to 1.0.1 (#73262)
* Replace outdated pocketcast dependency

* Fix pycketcasts in requirements_all.txt

* Fix pycketcasts in requirements_all.txt

* Fix pycketcasts in requirements_all.txt
2022-06-20 21:04:31 +02:00
jjlawren c98419b031
Bump soco to 0.28.0 (#73750) 2022-06-20 20:59:29 +02:00
Franck Nijhof 16e7593a7b
Add state class to Flipr sensors (#73747) 2022-06-20 20:29:50 +02:00
Gordon Allott 66b02ecff0
Ensure metoffice daily are returned once daily (#72440)
* ensure metoffice daily are returned once daily

* Fixes metoffice tests for MODE_DAILY
2022-06-20 20:27:39 +02:00
epenet f43cc18aa3
Fix type hints in zha platforms (#73745)
* Adjust binary_sensor

* Adjust device_action

* Adjust device_tracker

* Adjust fan

* Adjust lock

* Adjust siren
2022-06-20 11:31:16 -04:00
epenet 9a95649a22
Use a TypedDict for REPORT_CONFIG in zha (#73629)
* Introduce ReportConfig TypedDict in zha

* Fix hint

* Always use Tuple

* Replace empty list with empty tuple

* Allow float for third config tuple value

* ReportConfig -> AttrReportConfig

* dict -> AttrReportConfig

* Allow int attributes

* Add coments
2022-06-20 11:29:45 -04:00
epenet be2aa44559
Fix mypy issues in zha config_flow (#73744) 2022-06-20 16:25:24 +02:00
Rami Mosleh 81e3ed790d
Add re-authentication for `transmission` (#73124)
* Add reauth flow to transmission

* fix async_setup

* add strings

* fix test coverage
2022-06-20 16:09:58 +02:00
Joel 3824703a64
Fix homematicip cloud cover tilt position (#73410)
* cover slats fixed set tilt position

* Update cover.py

* Adjust tests

Co-authored-by: Erik Montnemery <erik@montnemery.com>
2022-06-20 16:08:43 +02:00
rappenze 483406dea5
Code cleanup fibaro switch and binary sensor (#73386) 2022-06-20 15:46:28 +02:00
Alessandro Ghedini 670bf0641a
Update london-tube-status for TfL API breaking change (#73671)
* Update london-tube-status for TfL API breaking change

The TfL API used by the london_underground component (through the
london-tube-status module) introduced breaking changes recently, which
in turn broke the component, and require updating the london-tube-status
dependency to fix.

However the newer module versions also introduced other changes,
including switching from requests to aiohttp, which require converting
the london_underground component to use async APIs.

Fixes #73442

* Update sensor.py

Co-authored-by: Erik Montnemery <erik@montnemery.com>
2022-06-20 15:08:50 +02:00
epenet b6d3e34ebc
Drop custom type (CALLABLE_T) from zha (#73736)
* Drop CALLABLE_T from zha

* Adjust .coveragerc

* Apply suggestions from code review

Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>

* Add TypeVar

* Apply suggestions from code review

Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>

* One more

Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>

* Flake8

Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
2022-06-20 14:50:27 +02:00
w-marco c075760ca0
Display Windows as TYPE_WINDOW in Google Home (#73533)
* Display Windows as TYPE_WINDOW in Google Home

* set window type to window in smart_home test
2022-06-20 13:03:43 +02:00
Thibaut 3571a80c8d
Add support for Somfy Thermostat in Overkiz integration (#67169)
* Add Somfy Thermostat

* Fix linked device

Co-authored-by: Vincent Le Bourlot <vlebourl@gmail.com>

* Mark Somfy thermostat as supported

* Fix wrong usage of cast

* Update presets to lowercase

* Rename constants

* Remove _saved_target_temp

* Apply black

* Clean code

* Fix mypy errors

* Use constants from pyoverkiz

* Use enum for target temp

* Add comment

* Use ClimateEntityFeature

* Ease code

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

* Remove unused imports

* Use HVACAction

* Use HVACMode

* Use more Overkiz constants

* Don’t copy/paste

* Don’t use magic number

Co-authored-by: Vincent Le Bourlot <vlebourl@gmail.com>
Co-authored-by: Mick Vleeshouwer <mick@imick.nl>
2022-06-20 12:58:08 +02:00
epenet 2de4b193e3
Remove unnecessary type definitions in zha (#73735)
* Cleanup ZigpyClusterType

* Cleanup ZigpyDeviceType

* Cleanup ZigpyEndpointType

* Cleanup ZigpyGroupType

* Cleanup ZigpyZdoType
2022-06-20 12:49:40 +02:00