Added camera functionality
This commit is contained in:
@@ -1,18 +1,20 @@
|
||||
from homeassistant.components.binary_sensor import BinarySensorEntity
|
||||
|
||||
from .const import DOMAIN, DATA_ADDERS
|
||||
from .helpers import BrowserModEntity2
|
||||
from .helpers import BrowserModEntity
|
||||
|
||||
|
||||
async def async_setup_platform(hass, config_entry, async_add_entities, discoveryInfo = None):
|
||||
async def async_setup_platform(
|
||||
hass, config_entry, async_add_entities, discoveryInfo=None
|
||||
):
|
||||
hass.data[DOMAIN][DATA_ADDERS]["binary_sensor"] = async_add_entities
|
||||
|
||||
|
||||
async def async_setup_entry(hass, config_entry, async_add_entities):
|
||||
await async_setup_platform(hass, {}, async_add_entities)
|
||||
|
||||
|
||||
class BrowserBinarySensor(BrowserModEntity2, BinarySensorEntity):
|
||||
|
||||
class BrowserBinarySensor(BrowserModEntity, BinarySensorEntity):
|
||||
def __init__(self, coordinator, deviceID, parameter, name):
|
||||
super().__init__(coordinator, deviceID, name)
|
||||
self.parameter = parameter
|
||||
|
||||
Reference in New Issue
Block a user