I have started using this integration for monitoring stocks, and it creates a sensor for every stock I monitor, like “sensor.googl” for Google,
I want to copy the integration (renaming it “zAlpha_Vantage”) code and modify it so the sensor name becomes,“sensor.zalpha_vantage_googl”
Where in the code and which line do I modify like “zalpha_vantage” + symbol?
- platform: zalpha_vantage
api_key: XYZ
symbols:
- symbol: GOOGL
- symbol: AAPL
Please advise.
msp1974
(Mark P)
2
Either amend the _attr_name attribute on line 126 or add a name property to the class.
1 Like