Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion homeassistant/components/vivotek/camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ def __init__(self, config, cam, stream_source):
self._cam = cam
self._frame_interval = 1 / config[CONF_FRAMERATE]
self._motion_detection_enabled = False
self._model_name = None
self._name = config[CONF_NAME]
self._stream_source = stream_source

Expand Down Expand Up @@ -117,4 +118,8 @@ def brand(self):
@property
def model(self):
"""Return the camera model."""
return self._cam.model_name
return self._model_name

def update(self):
"""Update entity status."""
self._model_name = self._cam.model_name