Bluesound provider: use ip_address not address (#2102)
authorBlake <bmatheny@mobocracy.net>
Fri, 4 Apr 2025 18:32:53 +0000 (13:32 -0500)
committerGitHub <noreply@github.com>
Fri, 4 Apr 2025 18:32:53 +0000 (20:32 +0200)
commitd41921258f364990a1c26c6e14a1ea9067a7f320
treed89cdd8b6f99a405b7a878355f7dd56b4dd86035
parentb7a190ae6c86199b1c263803550143a9f9d55287
Bluesound provider: use ip_address not address (#2102)

`music_assistant_models.player.DeviceInfo` has an `ip_address` field, not an `address` field. I had been getting the following exceptions in the bluesound provider for a while:

```
2025-04-04 09:00:47.446 ERROR (MainThread) [music_assistant] Error doing task: Task exception was never retrieved
Traceback (most recent call last):
  File "/app/venv/lib/python3.12/site-packages/music_assistant/mass.py", line 797, in process_mdns_state_change
    await prov.on_mdns_service_state_change(name, state_change, info)
  File "/app/venv/lib/python3.12/site-packages/music_assistant/providers/bluesound/__init__.py", line 251, in on_mdns_service_state_change
    if cur_address and cur_address != mass_player.device_info.address:
                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'DeviceInfo' object has no attribute 'address'. Did you mean: 'ip_address'?
```

This commit addresses that exception.
music_assistant/providers/bluesound/__init__.py