alxhotel / chromecast-api

:tv: Chromecast Node.js module
MIT License
155 stars 49 forks source link

idempotent discovery #92

Open travisghansen opened 2 weeks ago

travisghansen commented 2 weeks ago

This PR introduces logic to ensure (as well as possible) idempotency of devices. It does this by utilizing a new uuid attribute on each device and ensuring that as new mdns or ssdp data arrives that the corresponding device simply has it's attributes updated if/when appropriate vs creating a new entry.

Various other features are peppered throughout: