Commit graph

402 commits

Author SHA1 Message Date
Steven Looman
f8b192bd94
Handle the correct exception type when subscribing to the router service returns an error in the upnp component (#127006)
* Catch the right exception when handling subscription errors

* Assert device is forced to poll
2024-10-02 20:55:25 +02:00
Tatham Oddie
fb56c5875a
Add device class for UPNP uptime sensor (#126306)
Allows for easier conversion of time periods within HA natively
2024-09-20 12:04:24 +02:00
Michael
844ccf461f
Remove unnecessary config schema definitions (#123197) 2024-08-05 17:44:14 +02:00
J. Nick Koston
d0ba5534cd
Bump async-upnp-client to 0.40.0 (#122427) 2024-07-22 17:04:29 -05:00
Steven Looman
c0732fbb1d
Add options flow for force_poll setting in upnp (#120843) 2024-07-19 19:02:28 +02:00
Steven Looman
d3029af888
Address post merge review changes in upnp (#122189)
Post merge review change
2024-07-19 11:38:38 -04:00
Steven Looman
ac9c08f52c
Add port mapping entry count sensor to upnp (#120263)
Add port mapping entry count sensor
2024-07-04 09:07:41 +02:00
Steven Looman
559caf4179
Use eventing for some of the upnp sensors, instead of polling (#120262) 2024-06-29 12:11:22 -05:00
Steven Looman
55a2645e78
Bump async_upnp_client to 0.39.0 (#120250) 2024-06-23 14:21:56 -05:00
Marc Mueller
44049c34f9
Use PEP 695 type alias for ConfigEntry types (#117632) 2024-05-17 15:42:58 +02:00
Michael
7f7d025b44
Store runtime data inside the config entry in Upnp (#117030)
store runtime data inside the config entry
2024-05-07 22:05:04 +02: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
Steven Looman
eb0aa6bb82
Bump async-upnp-client to 0.38.3 (#114447) 2024-03-29 19:08:07 +01: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
Sid
0b9c9aff62
Add ruff rules PIE790, PIE794, PIE807, PIE810 (#113617) 2024-03-16 11:04:58 -10:00
Steven Looman
cd4e8707ea
Improve discovering upnp/igd device by always using the SSDP-discovery for the Unique Device Name (#111487)
* Always use the UDN found in the SSDP discovery, instead of the device description

* Ensure existing DeviceEntries are still matched
2024-03-12 12:38:09 -04:00
Paulus Schoutsen
f416d67d21
Remove built-in support for import_executor in manifest (#112725) 2024-03-08 12:02:32 -05:00
Marc Mueller
062cc4bfce
Add empty line after module docstring [t-v] (#112705) 2024-03-08 10:35:23 -05:00
Joost Lekkerkerker
f357e13e3d
Add icon translations to UPnP (#112335)
* Add icon translations to UPnP

* Add icon translations to UPnP
2024-03-06 06:31:37 +01:00
Erik Montnemery
9ec9ac4fd4
Migrate integrations u-z to generic flowhandler (#111866) 2024-02-29 20:08:16 +01:00
J. Nick Koston
a664f296e2
Import upnp in the executor to avoid blocking the event loop (#111808)
`2024-02-29 01:23:54.490 DEBUG (MainThread) [homeassistant.loader] Component upnp import took 0.349 seconds (loaded_executor=False)
`
2024-02-29 10:36:22 -05:00
J. Nick Koston
ae49b3a274
Add async_schedule_reload helper to the ConfigEntries manager (#110912)
* Add async_schedule_reload helper to the ConfigEntries manager

We have cases where the the setup retry kicks in right before
the reload happens causing the reload to fail with
OperationNotAllowed. The async_schedule_reload will
cancel the setup retry before the async_reload task
is created to avoid this problem.

I updated a few integrations that were most likely
to have this problem. Future PRs will do a more
extensive audit

* coverage

* revert for now since this needs more refactoring in a followup

* cover

* cleanup and fixes
2024-02-20 02:14:45 +01:00
Steven Looman
147a1f7b0b
Bump async-upnp-client to 0.38.2 (#110411) 2024-02-12 15:31:09 -06:00
Marc Mueller
8b0c9d3d18
Use builtin TimeoutError [t-z] (#109683) 2024-02-05 12:20:36 +01:00
Steven Looman
2b389739d3
Bump async-upnp-client to 0.38.1 (#108382) 2024-01-19 16:48:08 -10:00
Alessandro Mariotti
f0e080f958
Bump getmac 0.9.4 (#106321) 2023-12-25 09:18:06 -10:00
Michael Chisholm
64a2c64419
Bump async-upnp-client to 0.38.0 (#105980) 2023-12-19 10:12:30 -10: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
Erik Montnemery
649e8e689d
Fix entity descriptions in upnp (#106023) 2023-12-18 15:26:38 -10:00
Steven Looman
39c81cb4b1
Prefer IPv4 locations over IPv6 locations for upnp devices/component (#103792) 2023-11-13 10:09:27 -06:00
Steven Looman
aa9301be32
Bump async-upnp-client to 0.36.2 (#102472) 2023-10-21 10:09:09 -10:00
Steven Looman
ad17f1622c
Bump async-upnp-client to 0.36.1 (#100961) 2023-09-26 16:32:37 -05:00
J. Nick Koston
6387263007
Bump async-upnp-client to 0.36.0 (#100881) 2023-09-25 16:19:40 -05:00
J. Nick Koston
fc75172d79
Bump async-upnp-client to 0.35.1 (#100248) 2023-09-12 16:35:39 -05:00
Steven Looman
045c514c18
Bump async-upnp-client to 0.35.0 (#99129) 2023-08-27 09:08:58 -05:00
Ville Skyttä
b51c0f6ddc
Remove unnnecessary pylint configs from components [s-z]* (#98925) 2023-08-24 01:25:32 +02:00
Marc Mueller
8b0fdd6fd2
Use asyncio.timeout [s-z] (#98452) 2023-08-15 14:34:18 +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
Steven Looman
9f551c0469
Bump async-upnp-client to 0.34.1 (#97105) 2023-07-23 22:38:21 +02:00
Joost Lekkerkerker
bfbdebd0f7
Add entity translations to uPnP (#96763) 2023-07-23 20:21:57 +02:00
Paulus Schoutsen
7859be6481
Add deduplicate translations script (#96384)
* Add deduplicate script

* Fix forecast_solar incorrect key with space

* Fix utf-8

* Do not create references to other arbitrary other integrations

* Add commented code to only allow applying to referencing integrations

* Tweak

* Bug fix

* Add command line arg for limit reference

* never suggest to update common keys

* Output of script

* Apply suggestions from code review

Co-authored-by: Michael <35783820+mib1185@users.noreply.github.com>

---------

Co-authored-by: Michael <35783820+mib1185@users.noreply.github.com>
2023-07-13 11:52:50 -04:00
Steven Looman
63c2b5868e
Bump async-upnp-client to 0.33.2 (#93329)
* Bump async-upnp-client to 0.33.2

* Fix tests
2023-05-21 17:17:08 -05:00
Steven Looman
2f4325246b
Make sure upnp-router is also initialized when first seen through an advertisement (#91037) 2023-04-07 13:11:31 -10:00
Steven Looman
9a5ceb9ef8
Use default rounding/presentation mechanism for upnp (#89954) 2023-03-20 15:44:05 +01:00
epenet
b3d6f098d2
Adjust entity registry access in integrations (1) (#88946) 2023-03-01 08:02:34 +01:00
epenet
753c790a25
Use async_timeout in integrations (#88697) 2023-02-24 08:13:03 -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
Franck Nijhof
f5b651750c
Enable Ruff ICN001 (#87775) 2023-02-09 13:41:50 +01:00
Erik Montnemery
b0b1d8143f
Sort manifests 10 (#87031) 2023-02-08 20:41:50 +01:00
Franck Nijhof
939eef3b28
Remove translations from Core (#87543)
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2023-02-06 15:06:43 +01:00