Note that it may be necessary to purge old state entries in HA’s database so that this works. Those state entries may still base on the old configuration and will thwart a proper plot display. See https://www.home-assistant.io/docs/backend/database/#delete for how to delete state entries.