Commit Graph
263 Commits
Author SHA1 Message Date
Leo ShenandJ. Nick Koston ecadaf314d Add support for Switchbot Lock Pro (#119326)
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-06-20 19:26:43 -05:00
Leo Shen 0053c92d2b Update PySwitchbot to 0.48.0 (#119998) 2024-06-19 16:56:20 -05:00
Huyuwei 7947f63860 Enable retrieving sensor data from WoHub2 device and update pySwitchbot to 0.47.2 (#118567) 2024-06-07 10:56:12 +02:00
J. Nick Koston 488b2edfd8 Bump pySwitchbot to 0.46.1 (#118025) 2024-05-24 10:37:10 +02:00
J. Nick Koston 93daac9b3d Update pySwitchbot to 0.46.0 to fix lock key retrieval (#118005)
* Update pySwitchbot to 0.46.0 to fix lock key retrieval

needs https://github.com/Danielhiversen/pySwitchbot/pull/236

* bump

* fixes
2024-05-23 23:59:44 -04:00
Paulus Schoutsen f416d67d21 Remove built-in support for import_executor in manifest (#112725) 2024-03-08 12:02:32 -05:00
Marc Mueller 930a396712 Add empty line after module docstring [s] (#112704) 2024-03-08 14:33:51 +01:00
J. Nick Koston 9353ad0690 Import switchbot in the executor to avoid blocking the event loop (#112077) 2024-03-03 01:18:03 +01:00
Erik Montnemery b0ed8c4961 Migrate integrations s-t to generic flowhandler (#111865) 2024-02-29 22:16:14 +01:00
J. Nick Koston e9f8bae693 Bump PySwitchbot to 0.45.0 (#110275) 2024-02-11 13:09:11 -06:00
Marc Mueller 438d3b01b9 Use builtin TimeoutError [o-s] (#109682) 2024-02-05 12:14:37 +01:00
J. Nick Koston 4b7a313ece Use identity checks for CoreState (#107846)
Some of the checks used ==, and some used is. Switch
everything to is as its faster
2024-01-12 10:21:26 +01:00
dcmeglioandJ. Nick Koston 69a8f476e8 Improved tracking of switchbot opening/closing states (#106741)
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-01-11 16:09:50 -10:00
dcmeglio 0d8073fddf Bump PySwitchbot to 0.44.0 (#107833) 2024-01-11 15:18:57 -10:00
J. Nick Koston 9231e00561 Update switchbot to use close_stale_connections_by_address (#106835) 2024-01-02 20:44:17 +01:00
J. Nick Koston 21fc3203a6 Bump pySwitchbot to 0.43.0 (#106833) 2024-01-02 11:39:04 +01:00
Tereza Tomcova fe30c019b6 Bump PySwitchbot to 0.40.1 (#101164) 2023-09-30 21:53:58 +02:00
Tereza Tomcova 217a895b5a Bump PySwitchbot to 0.40.0 to support Curtain 3 (#100619) 2023-09-28 13:15:22 +02:00
Ravaka RazafimanantsoaandJ. Nick Koston f99dedfb42 Add switchbot cloud integration (#99607)
* Switches via API

* Using external library

* UT and checlist

* Updating file .coveragerc

* Update homeassistant/components/switchbot_via_api/switch.py

Co-authored-by: J. Nick Koston <nick@koston.org>

* Update homeassistant/components/switchbot_via_api/switch.py

Co-authored-by: J. Nick Koston <nick@koston.org>

* Update homeassistant/components/switchbot_via_api/switch.py

Co-authored-by: J. Nick Koston <nick@koston.org>

* Review fixes

* Apply suggestions from code review

Co-authored-by: J. Nick Koston <nick@koston.org>

* This base class shouldn't know about Remote

* Fixing suggestion

* Sometimes, the state from the API is not updated immediately

* Review changes

* Some review changes

* Review changes

* Review change: Adding type on commands

* Parameterizing some tests

* Review changes

* Updating .coveragerc

* Fixing error handling in coordinator

* Review changes

* Review changes

* Adding switchbot brand

* Apply suggestions from code review

Co-authored-by: J. Nick Koston <nick@koston.org>

* Review changes

* Adding strict typing

* Removing log in constructor

---------

Co-authored-by: J. Nick Koston <nick@koston.org>
2023-09-16 16:00:41 +02:00
Michal JálandJ. Nick Koston d7d989b9fb Switchbot nightlatch feature (#98620)
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-08-30 00:03:08 -04:00
J. Nick Koston 0362ce92b5 Drop switchbot codeowner (#99108)
I picked up working on this integration because I wanted to make sure the new Bluetooth stack had a good test case to work out issues and did not generate unexpected breaking changes.

Since I do not use switchbot in production, I usually cannot help solve problems beyond the Bluetooth stack that is visible to HA.

While I am still happy to do code reviews here, the Bluetooth stack has matured to the point where watching for issues here is no longer helpful to maintaining the stack as the signal to noise ratio is too high
2023-08-27 09:37:27 +02:00
Marc Mueller 8b0fdd6fd2 Use asyncio.timeout [s-z] (#98452) 2023-08-15 14:34:18 +02:00
Erik Montnemery 045c327928 Move DeviceInfo from entity to device registry (#98149)
* Move DeviceInfo from entity to device registry

* Update integrations
2023-08-10 22:04:26 -04:00
Franck Nijhof 30058297cf Migrate backported StrEnum to built-in StrEnum (#97101) 2023-07-23 23:19:24 +02:00
Joost Lekkerkerker 5d3039f21e Use device class naming for Switchbot (#96187) 2023-07-15 12:36:13 -10:00
Patrick ZAJDA 914fc570c6 Set some Switchbot entity names to none (#90846) 2023-07-07 19:38:43 +02:00
Joost Lekkerkerker e94726ec84 Use explicit device naming for Switchbot (#96011)
Use explicit entity naming for Switchbot
2023-07-06 23:01:06 +02:00
J. Nick Koston cb7fa494a4 Make SwitchBot no_devices_found message more helpful (#95916) 2023-07-05 18:56:09 -05:00
Joost Lekkerkerker 9fb3d4de30 Add explicit device name to Switchbot (#95512) 2023-06-29 11:25:39 +02:00
Patrick ZAJDA 58f8f9c82a Add state attribute translations to Switchbot (#90861) 2023-06-27 11:52:20 +02:00
boozer2andJ. Nick Koston 51326bd8c7 Add Switchbot Indoor/Outdoor Meter (#94836)
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-06-19 13:35:44 -05:00
Erik Montnemery 2406b235b4 Name unnamed binary sensors by their device class (#92940)
* Name unnamed binary sensors by their device class

* Update type annotations

* Fix loading of entity component translations

* Add test

* Update integrations

* Set abode and rfxtrx binary_sensor name to None

* Revert changes in homekit_controller
2023-06-13 19:48:54 +02:00
ollo69 8001ed865d Fix switchbot binary sensor translation key (#92557) 2023-05-05 08:04:11 -05:00
Ben Morton d16e1b4ed0 Resolve issue with switchbot blind tilt devices getting stuck in opening/closing state (#91495) 2023-04-16 09:32:51 -10:00
Patrick ZAJDAandPaulus Schoutsen 4456557a02 Add entity name translations to Switchbot (#90600)
* Add entity name translations to Switchbot

Signed-off-by: Patrick ZAJDA <patrick@zajda.fr>

* Apply suggestions from code review

Signed-off-by: Patrick ZAJDA <patrick@zajda.fr>

* Fix tests

Signed-off-by: Patrick ZAJDA <patrick@zajda.fr>

* Update homeassistant/components/switchbot/strings.json

Co-authored-by: Patrick ZAJDA <patrick@zajda.fr>

---------

Signed-off-by: Patrick ZAJDA <patrick@zajda.fr>
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2023-04-03 10:10:30 -04:00
J. Nick Koston 542def7f82 Bump pySwitchbot to 0.37.5 (#90317) 2023-03-26 09:10:35 -10:00
J. Nick Koston dcc52bd366 Bump PySwitchbot to 0.37.4 (#90146)
fixes #90090 fixes #89061

changelog: https://github.com/Danielhiversen/pySwitchbot/compare/0.37.3...0.37.4
2023-03-22 22:10:47 -04:00
epenet 93efdc4991 Improve switch and climate type hints in integrations (#90040) 2023-03-21 13:26:41 +01:00
epenet d2ea773e7f Adjust AddEntitiesCallback import (part 1) (#88870)
Adjust AddEntitiesCallback import
2023-02-28 08:54:05 +01:00
J. Nick Koston 8e7081a8ce Bump pySwitchbot to 0.37.3 (#88512) 2023-02-20 16:25:13 -06:00
a26d41f260 Implement Switchbot Blind Tilt (#86591)
Co-authored-by: J. Nick Koston <nick@koston.org>
Co-authored-by: BelowAverageDeveloper <90269575+BelowAverageDev@users.noreply.github.com>
2023-02-16 21:06:02 -06:00
J. Nick Koston ffa7cac38e Switch switchbot to use no_devices_found (#88268) 2023-02-16 22:51:27 +01:00
Erik Montnemery cc564026fa Move EntityCategory to homeassistant.const (#87792)
* Move EntityCategory to homeassistant.const

* Fix more imports
2023-02-09 20:15:37 +01:00
Erik Montnemery 23fa500406 Sort manifests 9 (#87030) 2023-02-08 20:22:30 +01:00
epenet 1b23429f41 Add __init__ return type to integrations (#87637) 2023-02-07 15:55:14 +01:00
Franck NijhofandErik Montnemery 939eef3b28 Remove translations from Core (#87543)
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2023-02-06 15:06:43 +01:00
GitHub Action 072f228e4d [ci skip] Translation update 2023-01-28 00:23:36 +00:00
GitHub Action 4d215e573c [ci skip] Translation update 2023-01-23 00:23:13 +00:00
GitHub Action d1ecc418bb [ci skip] Translation update 2023-01-19 00:25:04 +00:00
GitHub Action d2e11797f8 [ci skip] Translation update 2023-01-17 00:24:30 +00:00