PlayerConfig,
)
from music_assistant_models.constants import (
+ EXTRA_ATTRIBUTES_TYPES,
PLAYER_CONTROL_FAKE,
PLAYER_CONTROL_NATIVE,
PLAYER_CONTROL_NONE,
PlayerType,
)
from music_assistant_models.errors import UnsupportedFeaturedException
-from music_assistant_models.player import (
- EXTRA_ATTRIBUTES_TYPES,
- DeviceInfo,
- PlayerMedia,
- PlayerSource,
-)
+from music_assistant_models.player import DeviceInfo, PlayerMedia, PlayerSource
from music_assistant_models.player import Player as PlayerState
from music_assistant_models.unique_list import UniqueList
from propcache import under_cached_property as cached_property
self._attr_device_info = DeviceInfo(
model=model,
manufacturer=manufacturer,
- ip_address=address,
- mac_address=player_id_to_mac_address(player_id),
)
+ self._attr_device_info.ip_address = address
+ self._attr_device_info.mac_address = player_id_to_mac_address(player_id)
self._attr_supported_features = {
PlayerFeature.PAUSE,
PlayerFeature.SET_MEMBERS,
# connect was successful, update device info
self._attr_device_info = DeviceInfo(
model=self.device.model_name,
- ip_address=self.device.device.presentation_url or self.description_url,
manufacturer=self.device.manufacturer,
)
# will be updated later.
dlna_player._attr_device_info = DeviceInfo(
model="unknown",
- ip_address=description_url,
manufacturer="unknown",
)
self.dlnaplayers[udn] = dlna_player
self._attr_device_info = DeviceInfo(
model=self.fully_kiosk.deviceInfo["deviceModel"],
manufacturer=self.fully_kiosk.deviceInfo["deviceManufacturer"],
- ip_address=address,
)
+ self._attr_device_info.ip_address = address
self._attr_available = True
self._attr_needs_poll = True
self._attr_poll_interval = 10
model=device.info.model_name if device.info.model_name is not None else "",
model_id=device.info.model_number,
manufacturer=device.info.brand,
- ip_address=ip,
)
+ roku_player._attr_device_info.ip_address = ip
self.roku_players[player_id] = roku_player
await roku_player.setup()
self._attr_available = self.snap_client.connected
self._attr_device_info = DeviceInfo(
model=self.snap_client._client.get("host").get("os"),
- ip_address=self.snap_client._client.get("host").get("ip"),
manufacturer=self.snap_client._client.get("host").get("arch"),
)
+ self._attr_device_info.ip_address = self.snap_client._client.get("host").get("ip")
self._attr_supported_features = {
PlayerFeature.SET_MEMBERS,
PlayerFeature.VOLUME_SET,
self._attr_device_info = DeviceInfo(
model=soco.speaker_info["model_name"],
manufacturer="Sonos",
- ip_address=soco.ip_address,
)
+ self._attr_device_info.ip_address = soco.ip_address
self._attr_needs_poll = True
self._attr_poll_interval = 5
self._attr_available = True
self._attr_device_info = DeviceInfo(
model=self._attr_device_info.model,
manufacturer=self._attr_device_info.manufacturer,
- ip_address=ip_address,
)
+ self._attr_device_info.ip_address = ip_address
self.update_player()
async def _check_availability(self) -> None:
self._attr_volume_muted = self.client.muted
self._attr_device_info = DeviceInfo(
model=self.client.device_model,
- ip_address=self.client.device_address,
manufacturer=self.client.device_type,
)
+ self._attr_device_info.ip_address = self.client.device_address
+ self._attr_device_info.mac_address = self.client.player_id
if (
old_state != PlaybackState.PLAYING
and self._attr_playback_state == PlaybackState.PLAYING
"getmac==0.9.5",
"mashumaro==3.17",
"music-assistant-frontend==2.17.73",
- "music-assistant-models==1.1.90",
+ "music-assistant-models==1.1.91",
"mutagen==1.47.0",
"orjson==3.11.5",
"pillow==12.1.0",
lyricsgenius==3.7.5
mashumaro==3.17
music-assistant-frontend==2.17.73
-music-assistant-models==1.1.90
+music-assistant-models==1.1.91
mutagen==1.47.0
niconico.py-ma==2.1.0.post1
orjson==3.11.5