Is it possible to modify the source list for the Sony Bravia TV component?
Its full of TV channels and i use Sky TV, so have no need for them and would like to de-cluter so to speak
Is it possible to modify the source list for the Sony Bravia TV component?
Its full of TV channels and i use Sky TV, so have no need for them and would like to de-cluter so to speak
Just added an issue to the braviarc-repository. https://github.com/aparraga/braviarc/issues/13
Once that issue is closed, we could add a config-parameter which dissables av-sources.
Thanks, so in a nutshell it’s not possible at the moment?
Technically it would. But it would be the best if the core-library doesnt mix them together.
Hi,
wouldn’t it easier to filter the source list from the braviatv.py component with a parameter for the platform?
something like.:
- media_player:
- platform: braviatv
ip:
filter_tv = true
PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
vol.Required(CONF_HOST): cv.string,
vol.Optional(CONF_NAME, default=DEFAULT_NAME): cv.string,
vol.Optional(FILTER, default=false): cv.string,
})
def _refresh_channels(self):
if not self._source_list:
self._content_mapping = self._braviarc. \
load_source_list()
if FILTER:
self._content_mapping.pop('tv')
self._source_list = []
for key in self._content_mapping:
self._source_list.append(key)
(just guessing didn’t check right syntax)