Commit graph

16 commits

Author SHA1 Message Date
RJPoelstra
3ad6589f25
Bump python-MotionMount to 2.2.0 (#126309) 2024-09-20 12:04:38 +02:00
RJPoelstra
3ba39d5158
Add translation to communication exceptions in MotionMount (#126043)
Add translation to communication exceptions
2024-09-16 14:43:37 +02:00
RJPoelstra
e6b86b662a
Add reconnect logic and proper reporting to MotionMount integration (#125670)
* Add reconnect logic and proper reporting

* Use snake_case

* Log on warning, not on info

* Reduce line length

* Refactor non-raising code out of try blocks

* Remove `_ensure_connected()` from action functions
2024-09-16 11:56:13 +02:00
RJPoelstra
db61f8a0fa
Bump python-MotionMount to 2.1.0 (#125660) 2024-09-10 15:58:20 +02:00
RJPoelstra
9f284c0582
Add model_id to MotionMount integration (#125650) 2024-09-10 11:44:17 +02:00
RJPoelstra
353e4865e1
Make preset list indicate whether the current mount position matches a preset in Vogel's Motionmount (#118731) 2024-06-21 06:22:12 +01:00
RJPoelstra
8a68529dd1
Bump python-MotionMount to 2.0.0 (#118719) 2024-06-03 16:27:42 +02:00
RJPoelstra
8c54587d7e
Improve base entity state in Vogel's MotionMount integration (#109043)
* Update device info when name changes

* Entities now report themselves as being unavailable when the MotionMount is disconnected

* Don't update device_info when name changes

* Use `device_entry` property to update device name

* Assert device is available

Co-authored-by: Erik Montnemery <erik@montnemery.com>

* Add missing import

---------

Co-authored-by: Erik Montnemery <erik@montnemery.com>
2024-05-10 09:58:16 +02:00
RJPoelstra
35f2287d1a
Bump python-MotionMount to 1.0.0 (#114945) 2024-04-05 17:20:58 +02:00
Marc Mueller
2c06d4fcb9
Add empty line after module docstring (2) [components] (#112736) 2024-03-08 19:15:59 +01:00
Marc Mueller
59a6035d3f
Add empty line after module docstring [j-m] (#112700) 2024-03-08 09:01:29 -05:00
Erik Montnemery
52e7912caf
Migrate integrations i-m to generic flowhandler (#111863) 2024-02-29 20:08:46 +01:00
RJPoelstra
9413d15c25
Add enum sensor to Vogel's MotionMount integration (#108643)
Add enum sensor entity
2024-01-28 15:02:39 +01:00
RJPoelstra
298b0d1105
Add binary sensor to MotionMount integration (#107659)
* Add binary sensor for `isMoving`

* Sort platforms alphabetically

* Update doc strings
2024-01-19 16:01:20 +01:00
RJPoelstra
c833f275d6
Add select platform to Vogel's MotionMount integration (#107132) 2024-01-06 23:44:28 -10:00
RJPoelstra
2c2e6171e2
Add integration for Vogel's MotionMount (#103498)
* Skeleton for Vogel's MotionMount support.

* Generated updates.

* Add validation of the discovered information.

* Add manual configuration

* Use a mac address as a unique id

* Add tests for config_flow

* Add a 'turn' sensor entity.

* Add all needed sensors.

* Add number and select entity for control of MotionMount

* Update based on development checklist

* Preset selector now updates when a preset is chosen

* Fix adding presets selector to device

* Remove irrelevant TODO

* Bump python-MotionMount requirement

* Invert direction of turn slider

* Prepare for PR

* Make sure entities have correct values when created

* Use device's mac address as unique id for entities.

* Fix missing files in .coveragerc

* Remove typing ignore from device library.

Improved typing also gave rise to the need to improve the callback mechanism

* Improve typing

* Convert property to shorthand form

* Remove unneeded CONF_NAME in ConfigEntry

* Add small comment

* Refresh coordinator on notification from MotionMount

* Use translation for entity

* Bump python-MotionMount

* Raise `ConfigEntryNotReady` when connect fails

* Use local variable

* Improve exception handling

* Reduce duplicate code

* Make better use of constants

* Remove unneeded callback

* Remove other occurrence of unneeded callback

* Improve removal of suffix

* Catch 'getaddrinfo' exception

* Add config flow tests for invalid hostname

* Abort if device with same hostname is already configured

* Make sure we connect to a device with the same unique id as configured

* Convert function names to snake_case

* Remove unneeded commented-out code

* Use tuple

* Make us of config_entry id when mac is missing

* Prevent update of entities when nothing changed

* Don't store data in `hass.data` until we know we will proceed

* Remove coordinator

* Handle situation where mac is EMPTY_MAC

* Disable polling

* Fix failing hassfest

* Avoid calling unique-id-less discovery handler for situations where we've an unique id
2023-12-22 12:04:58 +01:00