Allow enigma2 devices to use different source bouquets (#121686)
parent
865190f0b0
commit
cd4358ed9e
|
@ -16,6 +16,8 @@ from homeassistant.const import (
|
|||
from homeassistant.core import HomeAssistant
|
||||
from homeassistant.helpers.aiohttp_client import async_create_clientsession
|
||||
|
||||
from .const import CONF_SOURCE_BOUQUET
|
||||
|
||||
type Enigma2ConfigEntry = ConfigEntry[OpenWebIfDevice]
|
||||
|
||||
PLATFORMS = [Platform.MEDIA_PLAYER]
|
||||
|
@ -35,7 +37,9 @@ async def async_setup_entry(hass: HomeAssistant, entry: Enigma2ConfigEntry) -> b
|
|||
hass, verify_ssl=entry.data[CONF_VERIFY_SSL], base_url=base_url
|
||||
)
|
||||
|
||||
entry.runtime_data = OpenWebIfDevice(session)
|
||||
entry.runtime_data = OpenWebIfDevice(
|
||||
session, source_bouquet=entry.options.get(CONF_SOURCE_BOUQUET)
|
||||
)
|
||||
await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS)
|
||||
return True
|
||||
|
||||
|
|
|
@ -7,5 +7,5 @@
|
|||
"integration_type": "device",
|
||||
"iot_class": "local_polling",
|
||||
"loggers": ["openwebif"],
|
||||
"requirements": ["openwebifpy==4.2.4"]
|
||||
"requirements": ["openwebifpy==4.2.5"]
|
||||
}
|
||||
|
|
|
@ -1496,7 +1496,7 @@ openhomedevice==2.2.0
|
|||
opensensemap-api==0.2.0
|
||||
|
||||
# homeassistant.components.enigma2
|
||||
openwebifpy==4.2.4
|
||||
openwebifpy==4.2.5
|
||||
|
||||
# homeassistant.components.luci
|
||||
openwrt-luci-rpc==1.1.17
|
||||
|
|
|
@ -1208,7 +1208,7 @@ openerz-api==0.3.0
|
|||
openhomedevice==2.2.0
|
||||
|
||||
# homeassistant.components.enigma2
|
||||
openwebifpy==4.2.4
|
||||
openwebifpy==4.2.5
|
||||
|
||||
# homeassistant.components.opower
|
||||
opower==0.4.7
|
||||
|
|
Loading…
Reference in New Issue