Skip to content

Instantly share code, notes, and snippets.

View clapbr's full-sized avatar
💭
froggin around

Bruno Filipe clapbr

💭
froggin around
View GitHub Profile
@clapbr
clapbr / media_player.py
Last active January 12, 2021 19:48 — forked from mhofman/universal.py
Universal media_player for home-assistant with support for `active_child_template` and `default_first_child` (port to 0.102)
"""
Combination of multiple media players into one for a universal controller.
For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/media_player.universal/
"""
import logging
# pylint: disable=import-error
from copy import copy