Upgrade pyytlounge and fix #99

This commit is contained in:
dmunozv04
2023-11-10 11:36:26 +01:00
parent 28b6ac3218
commit de8d03285f
2 changed files with 5 additions and 3 deletions

View File

@@ -1,6 +1,7 @@
import aiohttp
import asyncio
import copy
import aiohttp
# Textual imports (Textual is awesome!)
from textual import on
from textual.app import App, ComposeResult
@@ -12,6 +13,7 @@ from textual.widgets import Button, Footer, Header, Static, Label, Input, Select
RadioSet, RadioButton
from textual.widgets.selection_list import Selection
from textual_slider import Slider
# Local imports
from . import api_helpers, ytlounge
from .constants import skip_categories
@@ -457,7 +459,7 @@ class DevicesManager(Vertical):
@on(Button.Pressed, "#element-remove")
def remove_channel(self, event: Button.Pressed):
channel_to_remove: Element = event.button.parent
self.config.channel_whitelist.remove(channel_to_remove.element_data)
self.config.devices.remove(channel_to_remove.element_data)
channel_to_remove.remove()
@on(Button.Pressed, "#add-device")

View File

@@ -1,7 +1,7 @@
aiohttp==3.8.6
argparse==1.4.0
async-cache==1.1.1
pyytlounge==1.6.2
pyytlounge==1.6.3
rich==13.6.0
ssdp==1.3.0
textual==0.40.0