Renamed Device to Browser throughout

This commit is contained in:
2022-07-18 20:51:07 +00:00
parent 3bf2481e5b
commit acc4a15e02
18 changed files with 227 additions and 369 deletions

View File

@@ -15,10 +15,10 @@ async def async_setup_entry(hass, config_entry, async_add_entities):
class BrowserModLight(BrowserModEntity, LightEntity):
def __init__(self, coordinator, deviceID, device):
BrowserModEntity.__init__(self, coordinator, deviceID, "Screen")
def __init__(self, coordinator, browserID, browser):
BrowserModEntity.__init__(self, coordinator, browserID, "Screen")
LightEntity.__init__(self)
self.device = device
self.browser = browser
@property
def entity_registry_visible_default(self):
@@ -41,7 +41,7 @@ class BrowserModLight(BrowserModEntity, LightEntity):
return self._data.get("screen_brightness", 1)
def turn_on(self, **kwargs):
self.device.send("screen_on", **kwargs)
self.browser.send("screen_on", **kwargs)
def turn_off(self, **kwargs):
self.device.send("screen_off")
self.browser.send("screen_off")