ONVIF Event Implementation (#35406)

Initial implementation of ONVIF event sensors
This commit is contained in:
Jason Hunter 2020-05-11 13:12:12 -04:00 committed by GitHub
parent 9eb1505aa1
commit 132bb4e890
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 762 additions and 20 deletions

View file

@ -9,7 +9,7 @@ from .models import Profile
class ONVIFBaseEntity(Entity):
"""Base class common to all ONVIF entities."""
def __init__(self, device: ONVIFDevice, profile: Profile) -> None:
def __init__(self, device: ONVIFDevice, profile: Profile = None) -> None:
"""Initialize the ONVIF entity."""
self.device = device
self.profile = profile