Skip to content
This repository was archived by the owner on Oct 1, 2021. It is now read-only.

Commit da1bda1

Browse files
fbradyirlballoob
authored andcommitted
add hikvision (#243)
1 parent e93efdd commit da1bda1

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
"""Discover Hikvision cameras."""
2+
from . import MDNSDiscoverable
3+
4+
5+
class Discoverable(MDNSDiscoverable):
6+
"""Add support for discovering Hikvision cameras."""
7+
8+
def __init__(self, nd):
9+
"""Initialize Hikvision camera discovery."""
10+
super(Discoverable, self).__init__(nd, '_http._tcp.local.')
11+
12+
def get_entries(self):
13+
return self.find_by_device_name('HIKVISION')

0 commit comments

Comments
 (0)