Add device info metadata for Yahoo Finance sensors#194
Add device info metadata for Yahoo Finance sensors#194eugenetsi wants to merge 2 commits intoiprak:masterfrom
Conversation
|
Would you mind adding the usage of this PR? It is to have the link to view more details? |
iprak
left a comment
There was a problem hiding this comment.
It would help if you explain the purpose of the PR and how to access the device info. As I understand, since the integration cannot be configured from UI, so the device info cannot be accessed in UI.
Even for YAML-only integrations, HA still registers a device record when device_info is provided. |
That is exactly what I thought was the intent. But I am not seeing anything in the Device column or Devices tab or under the kebab menu where The device registry wiki https://developers.home-assistant.io/docs/device_registry_index/ confirms that device info is only read for config entry which is for setup via UI. |

Summary
device_infowith identifiers,manufacturer and a link back to the Yahoo quote page
YAHOO_QUOTE_URLso configuration URLs are consistentasyncio_mode = auto) so Home Assistant fixtures run withoutasync_generator errors
test_device_info_exposes_symbol_detailsTesting
pytest tests/test_sensor.py -k device_info_exposes_symbol_detailspytest