Closed ptbsare closed 3 years ago
dlna_dmr documentation dlna_dmr source (message by IssueLinks)
Hello,
Same here, I'm using core-2021.3.3 version.
Best regards
2021-03-29 15:32:23 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 621, in _update_entity_states
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 282, in async_update_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 321, in _async_write_ha_state
attr.update(self.state_attributes or {})
File "/usr/src/homeassistant/homeassistant/components/media_player/__init__.py", line 843, in state_attributes
value = getattr(self, attr)
File "/usr/src/homeassistant/homeassistant/components/dlna_dmr/media_player.py", line 388, in media_title
return self._device.media_title
File "/usr/local/lib/python3.8/site-packages/async_upnp_client/profiles/dlna.py", line 780, in media_title
items = didl_lite.from_xml_string(xml)
File "/usr/local/lib/python3.8/site-packages/didl_lite/didl_lite.py", line 912, in from_xml_string
return from_xml_el(xml_el)
File "/usr/local/lib/python3.8/site-packages/didl_lite/didl_lite.py", line 932, in from_xml_el
didl_object = didl_object_type.from_xml(child_el)
File "/usr/local/lib/python3.8/site-packages/didl_lite/didl_lite.py", line 119, in from_xml
return cls(descriptors=descriptors, **properties)
File "/usr/local/lib/python3.8/site-packages/didl_lite/didl_lite.py", line 52, in __init__
self._ensure_required_properties(**properties)
File "/usr/local/lib/python3.8/site-packages/didl_lite/didl_lite.py", line 63, in _ensure_required_properties
raise Exception(key + ' is mandatory')
Exception: restricted is mandatory
media_player:
- platform: dlna_dmr
url: http://192.168.1.18:62158/
service: media_player.play_media
data:
media_content_id: 'media-source://media/file_example_MP3_700KB.mp3'
media_content_type: music/mp3
target:
entity_id: media_player.dlna_digital_media_renderer
I reset my HomeAssistant configuration with 2021.4.4 version. Issue is gone ! Hope, it will help !
Yes, this is recently fixed. Please update and this specific error should no longer appear.
I'm closing this issue. If this is still happening please let me know through this issue.
The problem
What is version of Home Assistant Core has the issue?
2021.1.5
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
DLNA_DMR
Link to integration documentation on our website
https://www.home-assistant.io/integrations/dlna_dmr/
Example YAML snippet
Anything in the logs that might be useful for us?
Model: Xiaomi Xiaoai Speaker Pro Product Link: https://www.mi.com/aispeaker-pro/specs Content of http://192.168.195.131:9999/95b715f3-2d64-493c-b120-88b6f6ce6f15.xml: