home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
71.89k stars 30.12k forks source link

DIRECTV integration error in logs #34453

Closed jes1417 closed 4 years ago

jes1417 commented 4 years ago

The problem

I saw the release notes about the DIRECTV component removing the yaml config so before upgrading I removed it and after the upgrade I added the new integration. I am seeing this error on every reboot even though I have nothing in my config for the DIRECTV platform.

The directv platform for the media_player integration does not support platform setup. Please remove it from your config.

Environment

arch | x86_64
-- | --
dev | false
docker | true
hassio | false
os_name | Linux
os_version | 4.19.0-0.bpo.8-amd64
python_version | 3.7.7
timezone | America/Chicago
version | 0.108.5
virtualenv | false

Problem-relevant configuration.yaml

Traceback/Error logs

Additional information

probot-home-assistant[bot] commented 4 years ago

Hey there @ctalkington, mind taking a look at this issue as its been labeled with a integration (directv) you are listed as a codeowner for? Thanks!

ctalkington commented 4 years ago

i think the error suggests that you have it configured still under media_player domain somewhere

jes1417 commented 4 years ago

I have ran a search in my config directory and it's not listed anywhere

Resinchem commented 4 years ago

I have the same exact error appearing, despite searching ALL .yaml files, Lovelace, etc. for anything referring to directv. There is no reference to it in any yaml files. All Lovelace media players reference the devices/entities as defined in the native integration. I suppose it could be buried in a .conf file or some other HA file somewhere, but I'm at loss for where to look and would be hesitant to modify any files other than .yaml.

ctalkington commented 4 years ago

I dont see how this is possible unless you maybe have an old entity somewhere trying to setup? Can you check your entities in configuration panel to see if any have reported issue?

ctalkington commented 4 years ago

You could also try extended logs to see if theres something prior to error that may point to issue:

logger:
  default: info
  logs:
    homeassistant.components.media_player: debug
    homeassistant.components.directv: debug
    directv: debug
Resinchem commented 4 years ago

OK... first I thought it might be a dlna_dmr entity. I removed that and restarted and error still appears. I apologize if there is a better way to do this, but here are the relevant entries from the log (anything DTV related:

Resinchem commented 4 years ago
2020-04-27 16:05:43 INFO (MainThread) [homeassistant.setup] Setting up directv
2020-04-27 16:05:43 INFO (MainThread) [homeassistant.setup] Setup of domain directv took 0.0 seconds.
2020-04-27 16:05:51 INFO (MainThread) [homeassistant.components.media_player] Setting up media_player.directv
2020-04-27 16:06:52 INFO (MainThread) [homeassistant.components.discovery] Found new service: directv {'host': '192.168.1.54', 'port': 49152, 'ssdp_description': 'http://192.168.1.54:49152/0/description.xml', 'name': 'DIRECTV2PC Media Server', 'model_name': 'MediaServer', 'model_number': '1.0', 'serial': 'RID-025180536986', 'manufacturer': 'DIRECTV', 'udn': 'uuid:DIRECTV2PC-Media-Server1_0-RID-025180536986', 'upnp_device_type': 'urn:schemas-upnp-org:device:MediaServer:1'}
2020-04-27 16:06:52 INFO (MainThread) [homeassistant.components.discovery] Unknown service discovered: dlna_dmr {'host': '192.168.1.54', 'port': 49152, 'ssdp_description': 'http://192.168.1.54:49152/4/description.xml', 'name': 'DIRECTV Mediashare Renderer', 'model_name': 'MediaRenderer', 'model_number': '1.0', 'serial': None, 'manufacturer': 'DIRECTV', 'udn': 'uuid:29bbe0e1-1a6e-47f6-8f8d-1077b103153c', 'upnp_device_type': 'urn:schemas-upnp-org:device:MediaRenderer:1'}
2020-04-27 16:06:52 INFO (MainThread) [homeassistant.components.discovery] Unknown service discovered: dlna_dms {'host': '192.168.1.54', 'port': 49152, 'ssdp_description': 'http://192.168.1.54:49152/0/description.xml', 'name': 'DIRECTV2PC Media Server', 'model_name': 'MediaServer', 'model_number': '1.0', 'serial': 'RID-025180536986', 'manufacturer': 'DIRECTV', 'udn': 'uuid:DIRECTV2PC-Media-Server1_0-RID-025180536986', 'upnp_device_type': 'urn:schemas-upnp-org:device:MediaServer:1'}
2020-04-27 16:06:52 ERROR (MainThread) [homeassistant.components.media_player] The directv platform for the media_player integration does not support platform setup. Please remove it from your config.
ctalkington commented 4 years ago

ah this seems like its being picked up by the older discovery method rather than the new ssdp method.

Ill have to see if theres a way to stop that but i think you can do:

discovery:
  ignore:
    - directv
Resinchem commented 4 years ago

That seem to take care of it. Thanks! Been spending a lot of time trying to clean up the log and I just couldn't track this one down and fix it.