def setup_platform(hass, config, add_entities, discovery_info=None):
    'Set up the QRCode image platform.'
    add_entities([QRCodeCamera(hass, 'remote_access', 'remote_access')])
Set up the QRCode image platform.
def setup_platform(hass, config, add_entities, discovery_info=None):
    
    add_entities([QRCodeCamera(hass, 'remote_access', 'remote_access')])