Commit Graph

126 Commits

Author SHA1 Message Date
epenet
4d3443dbf5 Move amcrest services to separate module (#146144)
* Move amcrest services to separate module

* Rename
2025-06-05 14:43:22 +02:00
epenet
3472e0e370 Standardize homeassistant imports in component (a-b) (#136821) 2025-01-29 11:37:48 +01:00
Norbert Rittel
2a9082559a Fix names and description of two actions (#133528)
The two actions enable_motion_recording and disable_motion_recording use "Enables" and "Disables" in their names.

This is inconsistent with the name of the actions, all other actions of this component, and the standard way of naming them, too.

In addition the description of the latter misses the "s" which causes additional inconsistency – especially in translations.
2024-12-18 22:35:58 +01:00
Joost Lekkerkerker
11f00895f7 Add legacy to integrations that have not moved to the UI (#131171) 2024-11-22 19:33:50 +01:00
Erik Montnemery
fce2e21c9f Update icons.json to new service schema part 1 (#124768) 2024-08-28 13:47:02 +02:00
epenet
0bb8c4832d Enable raise-within-try (TRY301) rule in ruff (#123351) 2024-08-12 09:16:33 +02:00
Marc Mueller
156a2427ff Use aiohttp.ClientTimeout for timeout (#122458) 2024-07-23 08:20:04 -05:00
J. Nick Koston
092a2de340 Fix non-thread-safe operations in amcrest (#116859)
* Fix non-thread-safe operations in amcrest

fixes #116850

* fix locking

* fix locking

* fix locking
2024-05-05 16:58:38 -04:00
Sid
0d66d298ec Enable Ruff RET504 (#114528)
* Enable Ruff RET504

* fix test

* Use noqa instead of cast

* fix sonos RET504

---------

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2024-04-06 11:07:37 +02:00
Joost Lekkerkerker
6bb4e7d62c Bump ruff to 0.3.4 (#112690)
Co-authored-by: Sid <27780930+autinerd@users.noreply.github.com>
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-03-26 00:02:16 +01:00
Jonathan Sider
dc9f0a55a6 Update Amcrest services.yaml (#111161) 2024-03-20 11:59:44 +01:00
Joost Lekkerkerker
d2663347e9 Remove Amcrest camera unique id migration (#113870) 2024-03-20 10:36:02 +01:00
Joost Lekkerkerker
21a2871014 Add service icons to Amcrest (#113276) 2024-03-14 14:01:51 +01:00
Joost Lekkerkerker
690ba103ed Improve lists in integrations [A] (#113006)
* Use list comprehension [A]

* Use list comprehension [A]

* Update homeassistant/components/aws/notify.py
2024-03-11 16:17:44 +01:00
Marc Mueller
aa16a9d707 Add empty line after module docstring (3) (#112750) 2024-03-08 20:38:34 +01:00
Marc Mueller
ff3a801936 Add empty line after module docstring [a-d] (#112697) 2024-03-08 14:51:32 +01:00
Erik Montnemery
0c2485bc03 Freeze integration entity descriptions (#105984)
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-12-18 16:28:13 -10:00
J. Nick Koston
ef6d77586a Bump python-amcrest to 1.9.8 (#100324) 2023-09-13 15:01:28 -05:00
Franck Nijhof
0ff015c3ad Migrate integration services (A) to support translations (#96362) 2023-07-11 23:04:27 +02:00
Franck Nijhof
18dddd6342 Update Ruff to v0.0.277 (#96108) 2023-07-09 10:10:23 -04:00
Erik Montnemery
334dacc322 Change Entity.name default to UNDEFINED (#94574)
* Change Entity.name default to UNDEFINED

* Update typing

* Update Pylint plugin

* Update TTS test
2023-06-15 11:09:53 +02:00
epenet
42b74e7f56 Adjust entity registry access in integrations (3) (#88948) 2023-03-01 08:24:56 +01:00
Erik Montnemery
231aad7a68 Sort manifests 1 (#87022) 2023-02-08 20:29:44 +01:00
Marc Mueller
63d519c1a8 Spelling updates (#82867) 2022-11-28 16:51:43 +01:00
Sean Vig
d49a223a02 Fix updating Amcrest binary sensors (#80365)
* Fix updating Amcrest binary sensors

As detailed in https://bugs.python.org/issue32113, a generator
expression cannot be used with asynchronous components, even that the
resulting elements of the generator are normal objects.  Manually
iterate over the event codes and check if the events have happened.
Escape early on the first event that is triggered such that this is
functionally equivalent to using `any`.

* Update homeassistant/components/amcrest/binary_sensor.py

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

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-10-17 10:13:11 +02:00
Sean Vig
e7c614a825 Fix audio detection for IP4m-1041 Amcrest camera (#80066) 2022-10-11 14:29:35 +02:00
epenet
ff356205bf Use platform constants from root (#78032) 2022-09-08 12:24:45 +02:00
epenet
df5f6bdfc1 Use _attr_should_poll in camera entities (#77173) 2022-08-22 20:30:35 +02:00
Sean Vig
08770d015b Change Amcrest event monitor to non-async (#69640) 2022-05-04 10:15:52 -05:00
epenet
246f4e081a Use EntityFeature enum in components (a**) (#69333) 2022-04-05 23:42:05 +02:00
epenet
bfd84ba89c Prettify yaml (services.yaml) (#68878) 2022-03-30 09:48:06 +02:00
Sean Vig
38306417ad Bump amcrest version to 1.9.7 (#68055) 2022-03-14 17:36:16 +01:00
Sean Vig
6124081ddc Fix turning amcrest camera on and off (#68050) 2022-03-12 20:42:28 +02:00
Robert Svensson
ac11a9b7ff Revert Amcrest change (#66412) 2022-02-12 23:08:23 +01:00
PanicRide
0797533016 New amcrest binary sensor to monitor doorbell button (#66302)
* New binary sensor to monitor doorbell button

* New binary sensor to monitor doorbell button
2022-02-11 23:58:26 +01:00
Richard Benson
b90434e8d6 Bump amcrest to 1.9.4 (#66124)
Co-authored-by: Franck Nijhof <git@frenck.dev>
2022-02-09 10:25:07 +01:00
Sean Vig
50525e25b6 Fix Amcrest service calls (#65717)
Fixes #65522
Fixes #65647
2022-02-06 14:14:44 -08:00
J. Nick Koston
5b755b74fb Add loggers to integration manifest.json (#65083) 2022-01-28 13:37:53 -08:00
Sean Vig
6af7425051 Create tasks to load Amcrest platforms (#64848)
* Create tasks to load Amcrest platforms

* Move closure definition out of for loop
2022-01-24 22:34:18 +01:00
Sean Vig
b713a951dd Update the states of the amcrest camera on every update (#56284) 2022-01-22 18:34:36 -10:00
Sean Vig
7781e308cd Migrate amcrest integration to new async API (#56294) 2022-01-22 15:49:45 -10:00
epenet
665eeb4b27 Explicitely allow Platform enum in discovery helper (#63571)
* Adjust Platform type hint in discovery helper

* Adjust amcrest

* Adjust comfoconnect

* Adjust ecovacs

* Adjust egardia

* Rename arguments

* Convert Platform enum to string explicitely

* Revert "Adjust egardia"

This reverts commit ff7b0d6100.

* Revert "Adjust ecovacs"

This reverts commit 2749045e13.

* Revert "Adjust comfoconnect"

This reverts commit bfff08f7fc.

* Undo argument name change and conversion to string

* Remove comment

Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-09 06:06:56 +01:00
Allen Porter
14e4216e29 Put access to ffmpeg hass.data behind a method (#62570)
* Put access to ffmpeg hass.data behind a method

Move all callers of `hass.data[DATA_FFMPEG]` to a new function that returns the FFMpegManager.

* Update homeassistant/components/ffmpeg/__init__.py

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

* Remove unnecessary async_ prefix

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-12-21 23:40:43 -08:00
epenet
e4e0dcbae0 Use new BinarySensorDeviceClass enum in amcrest (#61268)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-08 12:13:18 -08:00
Marc Mueller
b60b38c6f6 Fix amcrest pylint issue (#60932) 2021-12-03 20:14:21 +01:00
Pedro Rodriguez Tavarez
e0562385f1 Implement privacy_mode for amcrest integration (#57210) 2021-12-03 10:00:39 -08:00
Franck Nijhof
6b9c2d8295 Add shorthand attribute support to Camera platform (#59837) 2021-11-25 16:03:53 +01:00
Marc Mueller
5048bad050 Use assignment expressions 05 (#57785) 2021-10-17 19:56:00 +02:00
Sean Vig
f18e4bab60 Add resolution to Amcrest camera unique id (#56207)
Co-authored-by: Joakim Sørensen <hi@ludeeus.dev>
2021-09-30 13:38:18 +02:00
Marc Mueller
565a9fea6b Import Callable from collections.abc (2) (#56776) 2021-09-29 14:06:51 +02:00