Commit graph

19 commits

Author SHA1 Message Date
Jan-Philipp Benecke
5d14afad92
Use debug/warning instead of info log level in components [f] (#125971) 2024-09-14 23:47:27 +02:00
Kristof Mariën
53a59412bb
Add Foscam sleep switch (#109491)
* Add sleep switch

* Replace awake with sleep switch
2024-07-30 11:34:30 +02:00
J. Nick Koston
f5497cb0be
Migrate foscam to use async_update_entry to alter config entries (#110365) 2024-02-12 19:57:09 +01:00
Kristof Mariën
32a5345a85
Add foscam coordinator (#92665)
* Add foscam coordinator

* Code cleanup

* Coordinator cleanup

* Coordinator cleanup

* Replace async_timeout with asyncio.timeout

* Ignore coordinator (requires external device)

---------

Co-authored-by: G Johansson <goran.johansson@shiftit.se>
2023-12-22 17:44:52 +01:00
J. Nick Koston
cd03c49fc2
Wait for config entry platform forwards (#73806) 2022-07-09 17:27:42 +02:00
epenet
45313e3f7a
Remove integrations from mypy ignored modules (#64358)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-18 13:26:12 +01:00
epenet
d57c54c93e
Add init type hints [f-g] (#63186)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-01 13:38:11 -08:00
Robert Hillis
dfcadd600c
Remove deprecated yaml from foscam (#61761) 2021-12-14 13:11:07 +01:00
Marc Mueller
cd1b923e16
Use platform enum (2) [E-G] (#60933) 2021-12-04 13:26:40 +01:00
Tomasz
e9f6bc7364
Add missing return type to async_unload_entry and async_setup_entry (#57115) 2021-10-06 10:48:11 +02:00
tkdrob
d1c4d0de49
Use bool annotations for setup entries (#51166) 2021-05-27 17:39:06 +02:00
tkdrob
c0656878db
Normalize async_setup_entry (#51161) 2021-05-27 15:56:20 +02:00
J. Nick Koston
a67b9eff17
Reduce config entry setup/unload boilerplate D-F (#49733) 2021-04-26 20:46:49 -10:00
Quentame
198ecb0945
Uniformize platform setup (#47101)
* A platform is not a component

* Fix dynalite

* SUPPORTED_PLATFORMS --> PLATFORMS

* In tests

* In tests 2

* Fix SmartThings

* Fix ZHA test

* Fix Z-Wave

* Revert Z-Wave

* Use PLATFORMS const in ambient_station

* Fix ihc comment
2021-03-02 21:43:59 +01:00
Sergio Conde Gómez
2c74befd4f
Fix foscam to work again with non-admin accounts and make RTSP port configurable again (#45975)
* Do not require admin account for foscam cameras.

Foscam cameras require admin account for getting the MAC address,
requiring an admin account in the integration is not desirable as
an operator one is good enough (and a good practice).

Old entries using the MAC address as unique_id are migrated to the
new unique_id format so everything is consistent.

Also fixed unhandled invalid responses from the camera in the
config flow process.

* Make RTSP port configurable again as some cameras reports wrong port

* Remove periods from new log lines

* Set new Config Flow version to 2 and adjust the entity migration

* Create a proper error message for the InvalidResponse exception

* Change crafted unique_id to use entry_id in the entity

* Abort if same host and port is already configured

* Fix entry tracking to use entry_id instead of unique_id

* Remove unique_id from mocked config entry in tests
2021-02-05 22:39:31 +01:00
joe248
b4af17e02d
Add service to move camera to PTZ preset (#43083) 2021-01-27 15:43:36 +01:00
Sergio Conde Gómez
2e42a862b0
Remove service and config schemas from foscam (#45154) 2021-01-15 18:24:31 +01:00
Sergio Conde Gómez
83b210061d
Add config_flow and stream selection to foscam (#41429)
* Add config_flow and stream selection to foscam

* Simplify config_flow steps

* Make debug log entry more useful

* Deprecate config and platform schemas

* Simplify config loading

* Add config flow testing

* Remove unneeded CONFIG_SCHEMA deprecation

* Improve test coverage

* Unload service by tracking loaded entries

* Address comment

Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2021-01-13 16:09:05 +01:00
Paulus Schoutsen
f5076188ef
Consolidate all platforms that have no tests (#22096)
* Consolidate

* Fix tests

* Update imports

* Fix import

* Use importlib because integration and package share name

* Fix more tests

* Update .coveragerc and CODEOWNERS
2019-03-16 20:44:05 -07:00