Commit Graph

65 Commits

Author SHA1 Message Date
Erik Montnemery
f83c8de8d3 Update signature of platforms' async_setup_entry (#138201) 2025-02-10 21:08:03 +01:00
J. Nick Koston
a04970bd54 Address august review comments (#124819)
* Address august review comments

Followup to https://github.com/home-assistant/core/pull/124677

* cleanup loop

* drop mixin name

* event entity add cleanup

* remove duplicate prop

* pep0695 type

* remove some not needed block till done

* cleanup august tests

* switch to freezegun

* snapshots for dev reg

* SOURCE_USER nit

* snapshots

* pytest.raises

* not loaded check
2024-08-29 19:32:13 +02:00
J. Nick Koston
d421525f1b Fix missing translation key for august doorbells (#122251) 2024-07-22 13:15:43 +02:00
J. Nick Koston
dc5ae9e0b2 Add event platform to august (#121392) 2024-07-07 15:39:58 +02:00
J. Nick Koston
d9c7887bbf Update yalexs to 6.4.0 (#119987) 2024-06-19 14:11:36 -05:00
J. Nick Koston
87e52bb660 Small cleanups to august (#119950) 2024-06-19 09:21:04 -05:00
J. Nick Koston
f88b24f8a4 Combine statements that return the same result in august binary_sensor (#119944) 2024-06-18 21:40:21 -04:00
J. Nick Koston
025d861e67 Update yalexs to 6.1.0 (#119910) 2024-06-18 17:36:07 -05:00
J. Nick Koston
98140e0171 Reduce duplicate code in august to create entities (#119934) 2024-06-18 17:35:38 -05:00
J. Nick Koston
3d45ced02e Cleanup code to add august sensors (#119929) 2024-06-18 16:03:46 -05:00
J. Nick Koston
b8cafe7e5e Small cleanups to august (#119912) 2024-06-18 15:43:16 -05:00
J. Nick Koston
8855289d9c Migrate august to use yalexs 6.0.0 (#119321) 2024-06-10 21:50:11 +02:00
Marc Mueller
1fc8fdf9ff Use runtime_data for august (#116610) 2024-05-02 07:39:02 -05:00
Marc Mueller
ff3a801936 Add empty line after module docstring [a-d] (#112697) 2024-03-08 14:51:32 +01:00
Joost Lekkerkerker
8440b57349 Remove entity description mixin in August (#112383) 2024-03-06 12:50:59 +01:00
Joost Lekkerkerker
fff1fc8d19 Add icon translations to August (#108396) 2024-01-19 20:07:04 +01:00
Marc Mueller
5f08e2a2d1 Improve august typing (1) (#108325) 2024-01-18 23:13:08 +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
Joost Lekkerkerker
77b421887b Add entity translations for August (#98077) 2023-08-14 16:58:57 +02:00
J. Nick Koston
987897b0fa Add support for Yale Doorman to august (#97997) 2023-08-07 11:28:01 -10: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
J. Nick Koston
2a2b19ed7c Add support for Yale Home brand to august (#93214) 2023-05-20 09:42:19 -05:00
J. Nick Koston
30384501af Cleanup august binary sensors (#88332) 2023-02-17 19:15:56 +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
epenet
bb3e0633a4 Add init return type to integrations (#87523)
Add type hints to integrations
2023-02-06 11:37:25 +01:00
Franck Nijhof
b0cee0bc46 String formatting and max line length - Part 1 (#84390)
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2022-12-22 10:12:50 +01:00
epenet
65eb1584f7 Improve entity type hints [a] (#76986) 2022-08-18 15:56:52 +02:00
J. Nick Koston
65c670c2c7 Add diagnostics to august (#68157) 2022-03-15 19:05:56 +01:00
epenet
4c14aad90f Add setup type hints to august (#63388)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-04 13:32:11 -10:00
J. Nick Koston
03477e0ae6 Split august motion and image capture binary sensors (#62154) 2021-12-18 22:25:30 -08:00
Michael
b68a2747f3 Use relative imports [A-H] (#61574) 2021-12-13 20:03:01 +01:00
epenet
7c09cff3ad Use new DeviceClass and EntityCategory enums in august (#61288)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-08 22:15:15 +01:00
J. Nick Koston
d05127cb71 Add entity category to august (#58359) 2021-10-25 08:56:15 +02:00
Simone Chemelli
ee28dd57c1 Rename var to compliant name in August integration (#56812) 2021-09-30 12:15:17 +02:00
Marc Mueller
d51487f82a Import Callable from collections.abc (3) (#56777) 2021-09-29 16:19:06 +02:00
Marc Mueller
a4f6c3336f Use EntityDescription - august (#56395) 2021-09-18 13:10:15 -10:00
Daniel Hjelseth Høyer
fbad453c89 Pylint 2.9.3 (#52972)
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
2021-07-14 21:44:57 -07:00
Robert Hillis
d76607e945 Use entity class attributes for august (#52744) 2021-07-13 09:56:34 -10:00
J. Nick Koston
e2837f08e8 Small cleanups for august (#49493) 2021-04-25 11:32:34 +02:00
Paulus Schoutsen
a90d3a051f prefer total_seconds over seconds (#49505) 2021-04-20 17:41:36 -07:00
J. Nick Koston
a2c4b438ea Convert august to be push instead of poll (#47544) 2021-03-21 22:35:12 -07:00
Franck Nijhof
53545c984b Log lines do not end with a full stop (#37527) 2020-07-05 23:04:19 +02:00
Erik Montnemery
b022e08db9 Rename BinarySensorDevice to BinarySensorEntity (#34462)
* Rename BinarySensorDevice to BinarySensorEntity

* Tweak

* Move deprecation warning to __new__, add test

* Move deprecation warning back to __init__

* Move deprecation warning to __init_subclass
2020-04-23 21:57:07 +02:00
J. Nick Koston
be14b94705 Restore august lock changed_by state on restart (#32340)
* Various code review items from previous PRs

* Add a test for fetching the doorbell camera image

* Switch to using UNIT_PERCENTAGE for battery charge unit

* Add tests for changed_by
2020-02-29 12:12:50 +01:00
J. Nick Koston
223c01d842 Coordinate all august detail and activity updates (#32249)
* Removing polling from august

* Now using subscribers to the detail and activity

* Fix hash to list keys

* continue to the next house if one fails

* Add async_signal_device_id_update

* Fix double initial update

* Handle self.hass not being available until after async_added_to_hass

* Remove not needed await

* Fix regression with device name
2020-02-27 19:44:22 -08:00
J. Nick Koston
4c5e364d90 Centralize august activity updates (#32197)
* Reduce August doorbell detail updates

* Doorbell images now get updates from the activity feed

* Tests for activity updates

* py-august now provides bridge_is_online for available state

* py-august now provides is_standby for available state

* py-august now provides get_doorbell_image (eliminate requests)

* remove debug

* black after merge conflict

* Centralize august activity updates

* Updates appear significantly more responsive

* Should address the community complaints about "lag"

* Reduce detail updates (device end points) to one hour interval

* Signal entities to update via dispatcher when new activity arrives

* Resolves out of sync state (skipped test is now unskipped)

* pylint

* fix merge conflict

* review comments

* Remove stray

* Address review items that can be done without refactor
2020-02-26 18:48:44 -08:00
J. Nick Koston
638a3025df Reduce August doorbell detail updates (#32193)
* Reduce August doorbell detail updates

* Doorbell images now get updates from the activity feed

* Tests for activity updates

* py-august now provides bridge_is_online for available state

* py-august now provides is_standby for available state

* py-august now provides get_doorbell_image (eliminate requests)

* remove debug

* black after merge conflict
2020-02-26 08:43:41 +01:00
J. Nick Koston
4c33a9d732 Add model to august device_info (#32187)
* Add model to august device_info

* Address review comments from PR#32125

* Fix test name
2020-02-25 18:34:31 -08:00
J. Nick Koston
2925e0617c Add Config flow to august (#32133)
* Add battery sensors for August devices

* Additional tests and cleanup in prep for config flow
  and device registry

* pylint

* update name for new style guidelines - https://developers.home-assistant.io/docs/development_guidelines/#use-new-style-string-formatting

* Config Flow for august push

* Update homeassistant/components/august/__init__.py

Co-Authored-By: Paulus Schoutsen <paulus@home-assistant.io>

* Address review items

* Update tests

Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2020-02-25 10:18:15 -08:00
springstan
524a1a7587 Use f-strings in integrations starting with "A" (#32110)
* Use f-strings in integrations starting with A

* Use f-strings in tests for integrations starting with A

* Fix pylint by renaming variable

* Fix nested for loop in f-string for aprs device_tracker

* Break long lines into multiple short lines

* Break long lines into multiple short lines v2
2020-02-23 13:38:05 -08:00