Commit graph

24 commits

Author SHA1 Message Date
Michael
b68a2747f3
Use relative imports [A-H] () 2021-12-13 20:03:01 +01:00
epenet
7c09cff3ad
Use new DeviceClass and EntityCategory enums in august ()
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 () 2021-10-25 08:56:15 +02:00
Simone Chemelli
ee28dd57c1
Rename var to compliant name in August integration () 2021-09-30 12:15:17 +02:00
Marc Mueller
d51487f82a
Import Callable from collections.abc (3) () 2021-09-29 16:19:06 +02:00
Marc Mueller
a4f6c3336f
Use EntityDescription - august () 2021-09-18 13:10:15 -10:00
Erik Montnemery
4e07ab1b32
Move temperature conversions to sensor base class (1/8) ()
* Move temperature conversions to entity base class (1/8)

* Update integrations a-c

* Leave old temperature conversion until all integrations are migrated

* tweak

* Use contextlib.suppress

* Remove the MeasurableUnitEntity mixin

* Address comments, add tests

* Fix f-string

* Drop deprecation warning from base entity class

* Update with _attr-shorthand

* Fix rebase mistakes

* Fix additional rebase mistakes

* Only report temperature conversion once

* Fix additional rebase mistakes

* Format homeassistant/components/bbox/sensor.py

* Fix check for overidden _attr_state

* Remove test workarounds from implementation

* Remove useless None-check

* Tweaks

* Migrate new sensors a-c

* Update climacell

* Push deprecation of temperature conversion forward

* Override __repr__ in SensorEntity

* Include native_value in SensorEntity attributes

* Pylint

* Black

* Black

* Fix rebase mistakes

* black

* Fix rebase mistakes

* Revert changes in august/sensor.py

* Revert handling of unit converted restored state

* Apply code review suggestion

* Fix arlo test
2021-08-11 10:45:05 +02:00
Robert Hillis
d76607e945
Use entity class attributes for august () 2021-07-13 09:56:34 -10:00
J. Nick Koston
e2837f08e8
Small cleanups for august () 2021-04-25 11:32:34 +02:00
Erik Montnemery
9e9ba53f0e
Move SensorEntity last in the inheritance tree () 2021-03-22 20:05:13 +01:00
Erik Montnemery
e0cd7072d6
Migrate integrations a-c to extend SensorEntity () 2021-03-22 12:37:16 +01:00
J. Nick Koston
a2c4b438ea
Convert august to be push instead of poll () 2021-03-21 22:35:12 -07:00
Erik Montnemery
6c084ae6ce
Update integrations a-e to override extra_state_attributes() () 2021-03-11 16:51:03 +01:00
J. Nick Koston
94825b3e15
Do not restore unavailable state for august locks () 2021-01-01 12:44:53 +01:00
springstan
d2b1918e9c
Drop UNIT_ prefix for percentage constant () 2020-09-05 21:09:14 +02:00
Franck Nijhof
1c2ebdf307
Upgrade black to 20.8b1 () 2020-08-27 13:56:20 +02:00
J. Nick Koston
7dd42bc32d
Separate august keypads into their own device ()
The keypad has its own unique id so its better
represented as its own device.  This fixes
showing the keypad battery state for the lock
in the UI.
2020-04-08 12:57:27 -07:00
J. Nick Koston
ae147fd9c7
Lock operation sensors for August ()
* adkj

* reduce

* Convert august to async

Async io was added to py-august 0.24

* Fix lint

* Lock operation sensors for august

* Tracking lock operation method allows user presence detection at the lock

* revert lock changes

* fix activity count merge conflict reversion

* Fix revert that come back with the conflict
2020-03-10 17:09:49 -07:00
J. Nick Koston
7ca4665711
Move keypad battery implementation details into py-august ()
* Move keypad battery implementation details into py-august

* Upgrade to py-august 0.22.0 which also adds gen2 doorbell battery data

* remove cruft from previous refactor
2020-03-01 23:22:28 -08:00
J. Nick Koston
be14b94705
Restore august lock changed_by state on restart ()
* 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 ()
* 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 ()
* 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
4c33a9d732
Add model to august device_info ()
* 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 ()
* 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