J. Nick Koston
2354f8194e
Add reauth to onvif ( #91957 )
...
Co-authored-by: Franck Nijhof <git@frenck.dev>
2023-04-25 12:20:17 -05:00
J. Nick Koston
c3262ebdb3
Add rule parser for onvif LineDetector and CountAggregation ( #91885 )
2023-04-24 15:23:59 +02:00
J. Nick Koston
e25885b943
Improve error reporting in onvif in config flow ( #91876 )
2023-04-24 15:20:37 +02:00
J. Nick Koston
392a9f32c9
Add fallback to device zone time or no timezone to onvif when setting time fails ( #91882 )
2023-04-24 14:37:56 +02:00
J. Nick Koston
ddb3955a23
Add guards to onvif for when the PullPoint to Webhook url changes ( #91886 )
2023-04-24 14:35:45 +02:00
J. Nick Koston
6c024405a6
Ensure onvif can still be unloaded if camera fails to unsubscribe ( #91887 )
2023-04-24 14:13:04 +02:00
J. Nick Koston
f3838dde3a
Cleanup onvif topic before lookup ( #91914 )
...
* Cleanup onvif topic before lookup
Some devices will append . and / to the path. We need
to strip it off to find the correct matcher
fixes #51870
* Update homeassistant/components/onvif/event.py
* Update homeassistant/components/onvif/event.py
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
---------
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2023-04-23 23:02:08 -04:00
J. Nick Koston
14d2645de2
Avoid creating onvif switches on unsupported devices ( #91907 )
...
* Avoid creating onvif switches on unsupported devices
fixes #89064
* cover
2023-04-23 20:56:43 -04:00
J. Nick Koston
c38839d72f
Suppress events for tns1:MediaControl/VideoEncoderConfiguration with onvif ( #91916 )
...
These events are not useful to the integration and generate a
confusing log message
```
2023-04-23 14:01:21.866 INFO (MainThread) [homeassistant.components.onvif] DS-HD1: No registered handler for event from 80:91:33:88:8d:bd: {
SubscriptionReference: None,
Topic: {
_value_1: tns1:MediaControl/VideoEncoderConfiguration,
Dialect: http://www.onvif.org/ver10/tev/topicExpression/ConcreteSet ,
_attr_1: {
}
},
ProducerReference: None,
Message: {
_value_1: {
Source: {
SimpleItem: [
{
Name: VideoEncoderConfigurationToken,
Value: VideoEncoderToken_1
}
],
ElementItem: [],
Extension: None,
_attr_1: None
},
Key: None,
Data: {
SimpleItem: [],
ElementItem: [
{
_value_1: <Element {http://www.onvif.org/ver10/media/wsdl }Configuration at 0x2a9e103c0>,
Name: Config
}
],
Extension: None,
_attr_1: None
},
Extension: None,
UtcTime: datetime.datetime(2023, 4, 23, 20, 1, 17, tzinfo=<isodate.tzinfo.Utc object at 0x1696b1270>),
PropertyOperation: Initialized,
_attr_1: {
}
}
}
}
```
We now ignore them
2023-04-23 20:54:37 -04:00
Marc Mueller
06520217bc
Update pylint to 2.17.2 ( #91894 )
2023-04-23 14:46:48 +02:00
J. Nick Koston
82340907c2
Ensure onvif retries setup if camera fails to respond correctly ( #91866 )
2023-04-23 01:27:54 +02:00
J. Nick Koston
942a955a77
Handle 404 for media/ptz/image onvif services to allow setup to proceed ( #91875 )
2023-04-23 01:16:37 +02:00
J. Nick Koston
bba225abc5
Mark onvif events as stale when the subscription renewal fails ( #91567 )
2023-04-23 01:14:22 +02:00
J. Nick Koston
3beb6e9718
Add webhook support to onvif ( #91485 )
2023-04-22 17:49:41 +02:00
J. Nick Koston
9be9defbb8
Add more rule parsers to onvif ( #91533 )
2023-04-17 13:41:15 +02:00
J. Nick Koston
7f7909e0d1
Add dhcp ip update support to onvif ( #91474 )
...
* Add dhcp ip update support to onvif
If we know the mac address of the camera we can
update the config entry when the ip changes
* fix lookup
* coverage
* remove unreachable
* remove unreachable
* remove unreachable
2023-04-16 15:55:33 -04:00
J. Nick Koston
cb6ffa5b03
Handle a few more transient onvif errors ( #91473 )
2023-04-16 14:06:30 +02:00
J. Nick Koston
e7373d979b
Fix onvif failing to reload ( #91482 )
2023-04-16 14:05:10 +02:00
J. Nick Koston
24538a44fc
Bump onvif-zeep-async to 1.2.11 ( #91472 )
2023-04-16 13:56:10 +02:00
Meow
963648a333
Add SetSynchronizationPoint fallback to onvif ( #86400 )
...
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-04-15 09:41:34 -10:00
J. Nick Koston
72dfd95831
Fix creating onvif pull point subscriptions when InitialTerminationTime is required ( #91470 )
...
* Fix creating onvif pull point subscriptions when InitialTerminationTime is required
fixes #85902
* Bump again because I got it wrong the first time.. this is why retest is good
2023-04-15 15:34:07 -04:00
J. Nick Koston
025e1792db
Bump onvif-zeep-async to 1.2.5 ( #91399 )
2023-04-14 08:37:12 +02:00
J. Nick Koston
4f05246654
Bump onvif-zeep-async to 1.2.3 ( #90382 )
2023-03-28 13:54:33 -10:00
J. Nick Koston
0b8fb36a7e
Fix onvif binary sensors ( #90202 )
...
* Fix httpx client creating a new ssl context with each client
While working on https://github.com/home-assistant/core/issues/83524
it was discovered that each new httpx client creates a new ssl context
f1157dbc41/httpx/_transports/default.py (L261)
If an ssl context is passed in creating a new one is avoided here
f1157dbc41/httpx/_config.py (L110)
This change makes httpx ssl no-verify behavior match aiohttp ssl no-verify
behavior
6da04694fd/aiohttp/connector.py (L892)
aiohttp solved this by wrapping the code that generates the ssl context
in an lru_cache
* compact
* Fix onvif binary sensors
fixes #83524
needs https://github.com/hunterjm/python-onvif-zeep-async/pull/9 first
to avoid recreating the memory leak
* Fix memory leak in onvif
Work around until https://github.com/hunterjm/python-onvif-zeep-async/pull/9
followup to https://github.com/home-assistant/core/pull/83006
* move check
* onvif-zeep-async 1.2.2
* fix unloading
2023-03-25 23:28:38 -04:00
J. Nick Koston
fd460996ba
Bump onvif-zeep-async to 1.2.2 to fix memory leak ( #90216 )
2023-03-25 09:21:05 -10: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
1450b44c63
Sort manifests 7 ( #87028 )
2023-02-08 20:32:43 +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
epenet
bb3e0633a4
Add init return type to integrations ( #87523 )
...
Add type hints to integrations
2023-02-06 11:37:25 +01:00
epenet
810367b757
Fix `can not` typo ( #87254 )
2023-02-03 11:37:16 +01:00
epenet
9327947332
Improve type hints in onvif ( #87184 )
2023-02-02 16:25:43 -05:00
Franck Nijhof
5e81d28116
Update black to 23.1.0 ( #87188 )
2023-02-02 18:35:24 +01:00
epenet
bd6a4d10ea
Use try_parse_enum in integrations ( #87085 )
2023-02-02 12:34:01 +01:00
Nick Touran
d2e75e4f7a
Add Autofocus, IR lamp, and Wiper switches in ONVIF ( #84317 )
...
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2023-01-30 12:08:07 +01:00
Franck Nijhof
c56832bb2c
Enable Ruff SIM300 ( #86793 )
2023-01-30 11:03:23 +01:00
Marc Mueller
60b799aac9
Misc typing improvements ( #86550 )
2023-01-25 11:05:36 +01:00
GitHub Action
d1ecc418bb
[ci skip] Translation update
2023-01-19 00:25:04 +00:00
GitHub Action
b81453cb6b
[ci skip] Translation update
2023-01-16 00:24:22 +00:00
GitHub Action
77f9548e51
[ci skip] Translation update
2023-01-15 00:25:52 +00:00
GitHub Action
b3ab0a0199
[ci skip] Translation update
2022-12-29 00:23:20 +00:00
Franck Nijhof
baef267f33
String formatting and max line length - Part 3 ( #84394 )
2022-12-22 13:35:47 +01:00
GitHub Action
f25017313a
[ci skip] Translation update
2022-12-09 00:24:29 +00:00
Franck Nijhof
9864d9e0d2
Remove str from sensor device class ( #83391 )
2022-12-08 19:04:58 +01:00
GitHub Action
1f3e5fb4fc
[ci skip] Translation update
2022-12-07 00:24:08 +00:00
Franck Nijhof
cb69364ad2
Remove str from binary sensor device class ( #83393 )
2022-12-06 14:52:26 +01:00
GitHub Action
3ab9a14ce7
[ci skip] Translation update
2022-12-06 00:21:31 +00:00
GitHub Action
03154e1d83
[ci skip] Translation update
2022-12-03 00:21:50 +00:00
J. Nick Koston
4239923ea2
Fix memory leak in onvif ( #83006 )
...
fixes https://github.com/home-assistant/core/issues/82504
2022-11-30 21:40:59 +01:00
GitHub Action
230b50d099
[ci skip] Translation update
2022-11-29 00:26:01 +00:00
Marc Mueller
63d519c1a8
Spelling updates ( #82867 )
2022-11-28 16:51:43 +01:00