Erik Montnemery
5e75c5faff
Remove unnecessary assignment of Template.hass from mobile_app ( #123702 )
2024-08-12 21:50:34 +02:00
Robert Resch
260642345d
Delete mobile_app cloudhook if not logged into the cloud ( #123234 )
2024-08-06 14:55:14 +02:00
Paulus Schoutsen
bc91bd3293
Make the Android timer notification high priority ( #123006 )
2024-08-01 11:51:45 +02:00
Paulus Schoutsen
454ca0ce95
Add timer support to mobile app ( #121469 )
...
* Add timer support to mobile app
* Fix tests
* Make it time-sensitive
2024-07-17 18:40:05 -05:00
Paulus Schoutsen
1aa9588dcb
Include hass device ID in mobile app get_config webhook ( #121496 )
2024-07-08 11:00:21 +02:00
Marc Mueller
f4b124f5f1
Fix invalid schemas ( #120450 )
2024-06-25 20:17:38 +02:00
Matthias Alphart
171707e8b7
Translation support for device automation extra fields ( #115892 )
...
* Translation support for device trigger extra fields
* Move extra_fields translations to backend
2024-06-12 14:10:02 +02:00
Luca Angemi
844ff30a60
Add state class to mobile_app restore entity ( #115798 )
...
add state class
2024-04-18 08:06:51 -04:00
J. Nick Koston
09b209245a
Only calculate native_value once in mobile_app ( #115550 )
...
native_value is read a few times during the state write.
Use _attr_native_value so its only calculated once
2024-04-13 18:57:12 -04:00
J. Nick Koston
b9d4d0e15d
Avoid removing websocket_api subscription in mobile_app teardown ( #115540 )
2024-04-13 15:24:46 -05:00
Marc Mueller
a0e6fd6ec5
Add improved typing for event fire and listen methods ( #114906 )
...
* Add EventType implementation
* Update integrations for EventType
* Change state_changed to EventType
* Fix tests
* Remove runtime impact
* Add tests
* Move to stub file
* Apply pre-commit to stub files
* Fix ruff PYI checks
---------
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-04-07 13:28:24 -10:00
Sid
8e98ba7312
Add first batch of Ruff PYI rules ( #115100 )
...
Co-authored-by: Jan Bouwhuis <jbouwh@users.noreply.github.com>
2024-04-07 11:30:50 -10: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
J. Nick Koston
7b64097399
Load mobile_app notify platform with eager_start ( #114700 )
2024-04-04 09:34:13 +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
J. Nick Koston
5b9f40b0f0
Pre import mobile app platforms to avoid having to wait on them ( #113966 )
2024-03-22 02:40:15 +01:00
Sid
82a60fe8ad
Enable Ruff RSE ( #113695 )
2024-03-18 00:40:38 +01:00
J. Nick Koston
c69495b64f
Remove supports_encryption check from mobile_app ( #113490 )
...
helpers already ports nacl at top level so this check can never
be False
```
>>> import sys
>>> from nacl.secret import SecretBox
>>> assert nacl in sys.modules
>>>
```
2024-03-15 11:13:44 +01:00
Marc Mueller
2c06d4fcb9
Add empty line after module docstring (2) [components] ( #112736 )
2024-03-08 19:15:59 +01:00
Paulus Schoutsen
f416d67d21
Remove built-in support for import_executor in manifest ( #112725 )
2024-03-08 12:02:32 -05:00
Marc Mueller
59a6035d3f
Add empty line after module docstring [j-m] ( #112700 )
2024-03-08 09:01:29 -05:00
Marc Mueller
8ca127df2a
Use KEY_HASS [h-z] ( #112610 )
2024-03-07 18:03:44 +01:00
Jan-Philipp Benecke
8770a50859
Remove deprecated hass.components
usage in mobile_app ( #111888 )
2024-03-06 09:11:31 +01:00
Erik Montnemery
52e7912caf
Migrate integrations i-m to generic flowhandler ( #111863 )
2024-02-29 20:08:46 +01:00
J. Nick Koston
f7ac1e4b8e
Import mobile_app in the executor to avoid blocking the event loop ( #111692 )
...
2024-02-27 22:44:23.926 DEBUG (MainThread) [homeassistant.loader] Component mobile_app import took 0.490 seconds (loaded_executor=False)
2024-02-28 12:39:51 +01:00
Joost Lekkerkerker
92c8c4b1ae
Ignore cloudhook already removed in mobile app ( #111122 )
2024-02-22 11:19:27 +01:00
Marc Mueller
a9147cf3dd
Use builtin TimeoutError [k-n] ( #109681 )
2024-02-05 12:08:18 +01:00
J. Nick Koston
4d69515849
Use shorthand attributes for mobile_app sensor platforms ( #108353 )
2024-01-19 14:41:32 +01:00
Jan-Philipp Benecke
28281523ec
Add pylint plugin to check for sorted platforms list ( #108115 )
2024-01-16 09:47:53 +01:00
Robert Resch
c063bf403a
Fix mobile_app cloudhook creation ( #107068 )
2024-01-05 10:53:59 +01:00
Robert Resch
c90f6f2fea
Fix creating cloud hook twice for mobile_app ( #106945 )
2024-01-03 12:29:05 +01:00
Robert Resch
9508a23f95
Check and register cloud hook if needed for mobile_app ( #106461 )
2023-12-27 18:01:44 +01:00
J. Nick Koston
18fa5b8532
Small cleanups to mobile_app encryption ( #102883 )
2023-10-28 09:18:09 -05:00
Erik Montnemery
d1afcd773f
Revert "Cache entity properties that are never expected to change in the base class" ( #100422 )
...
Revert "Cache entity properties that are never expected to change in the base class (#95315 )"
This reverts commit 042776ebb8
.
2023-09-15 11:25:24 +02:00
J. Nick Koston
042776ebb8
Cache entity properties that are never expected to change in the base class ( #95315 )
2023-09-14 17:48:48 -05:00
J. Nick Koston
fdb9ac20c3
Migrate mobile_app to use json helper ( #100136 )
2023-09-11 12:08:48 -05:00
J. Nick Koston
fed1cab847
Fix mobile app dispatcher performance ( #99647 )
...
Fix mobile app thundering heard
The mobile_app would setup a dispatcher to listener for updates on
every entity and reject the ones that were not for the unique id
that it was intrested in.
Instead we now register for a signal per unique id since we were
previously generating O(entities*sensors*devices) callbacks which
was causing the event loop to stall when there were a large
number of mobile app users.
2023-09-04 20:56:34 -04:00
Ville Skyttä
34b47a2597
Remove unnnecessary pylint configs from components [m-r]* ( #98924 )
2023-08-24 00:56:50 +02:00
Marc Mueller
71d985e4d6
Use asyncio.timeout [i-n] ( #98450 )
2023-08-15 14:32:15 +02:00
Erik Montnemery
045c327928
Move DeviceInfo from entity to device registry ( #98149 )
...
* Move DeviceInfo from entity to device registry
* Update integrations
2023-08-10 22:04:26 -04:00
Joost Lekkerkerker
d56484e2d6
Fix docstrings in mobile app device tracker ( #97963 )
2023-08-07 18:41:08 +02:00
J. Nick Koston
51a7df162c
Avoid regenerating the mobile app schema every time a webhook is called ( #96733 )
...
Avoid regnerating the mobile app schema every time a webhook is called
2023-07-17 08:42:46 +02:00
Erik Montnemery
fd08cfb074
Add empty config schema to mobile_app ( #93900 )
2023-06-01 12:17:55 +02:00
J. Nick Koston
48b93e03ee
Cache transient templates compiles provided via api ( #89065 )
...
* Cache transient templates compiles provided via api
partially fixes #89047 (there is more going on here)
* add a bit more coverage just to be sure
* switch method
* Revert "switch method"
This reverts commit 0e9e1c8cbe
.
* tweak
* hold hass
* empty for github flakey
2023-03-02 21:31:12 -05:00
Paulus Schoutsen
bc2b35765e
Stop processing when we hit bad encryption in mobile app ( #88150 )
...
* Stop processing when we hit bad encryption
* Accept webhook payload that is a list
* Rename functions because we import them
* Revert a debug thing
---------
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
2023-02-16 13:05:16 -05:00
epenet
ba23816a0c
Inverse json import logic ( #88099 )
...
* Fix helpers and util
* Adjust components
* Move back errors
* Add report
* mypy
* mypy
* Assert deprecation messages
* Move test_json_loads_object
* Adjust tests
* Fix rebase
* Adjust pylint plugin
* Fix plugin
* Adjust references
* Adjust backup tests
2023-02-16 11:37:57 +01:00
epenet
b21bf8763e
Fix mobile app regression accepting sensor states ( #88164 )
...
* Fix mobile app regression accepting sensor states
* Adjust tests
2023-02-15 07:17:19 -05: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
Erik Montnemery
1d64ba9d34
Sort manifests 6 ( #87027 )
2023-02-08 20:38:43 +01:00
epenet
a202588fd2
Add return type to json_loads ( #85672 )
...
* Add JSON type definitions
* Sample use
* Keep mutable for a follo-up PR (avoid dead code)
* Use list/dict
* Remove JsonObjectType
* Remove reference to Union
* Cleanup
* Improve rest
* Rename json_dict => json_data
* Add docstring
* Add type hint to json_loads
* Add cast
* Move type alias to json helpers
* Cleanup
* Create and use json_loads_object
* Make error more explicit and add tests
* Use JsonObjectType in conversation
* Remove quotes
2023-02-07 17:21:55 +01:00