def __init__(self, device):
    'Initialize as a subclass of MjpegCamera.'
    self._servername = device.client.name
    self.server_url = device.client._server_url
    device_info = {CONF_NAME: device.name, CONF_MJPEG_URL: f'{self.server_url}{device.mjpeg_image_url}&size={device.mjpegStreamWidth}x{device.mjpegStreamHeight}', CONF_STILL_IMAGE_URL: f'{self.server_url}{device.still_image_url}&size={device.mjpegStreamWidth}x{device.mjpegStreamHeight}'}
    self.device = device
    self._removed = False
    self._name = f'{self._servername} {device.name}'
    self._unique_id = f'{device._client.unique}_{device.typeID}_{device.id}'
    super().__init__(device_info)
Initialize as a subclass of MjpegCamera.
def __init__(self, device):
    
    self._servername = device.client.name
    self.server_url = device.client._server_url
    device_info = {CONF_NAME: device.name, CONF_MJPEG_URL: f'{self.server_url}{device.mjpeg_image_url}&size={device.mjpegStreamWidth}x{device.mjpegStreamHeight}', CONF_STILL_IMAGE_URL: f'{self.server_url}{device.still_image_url}&size={device.mjpegStreamWidth}x{device.mjpegStreamHeight}'}
    self.device = device
    self._removed = False
    self._name = f'{self._servername} {device.name}'
    self._unique_id = f'{device._client.unique}_{device.typeID}_{device.id}'
    super().__init__(device_info)