Fix typos in player model (#244)
authorMarcel van der Veldt <m.vanderveldt@outlook.com>
Wed, 6 Apr 2022 09:29:06 +0000 (11:29 +0200)
committerGitHub <noreply@github.com>
Wed, 6 Apr 2022 09:29:06 +0000 (11:29 +0200)
music_assistant/models/player.py

index 6c1fd4ead6726d32313311406749a644581ad65d..653a41a0cea6d88e15e8d0ea2e528ddc57d724cd 100755 (executable)
@@ -47,10 +47,10 @@ class Player(ABC):
     player_id: str
     _attr_is_group: bool = False
     _attr_group_childs: List[str] = []
-    _attr_name: str = None
+    _attr_name: str = ""
     _attr_powered: bool = False
     _attr_elapsed_time: int = 0
-    _attr_current_url: str = None
+    _attr_current_url: str = ""
     _attr_state: PlayerState = PlayerState.IDLE
     _attr_available: bool = True
     _attr_volume_level: int = 100