Fixed bug where notifications for devices and endpoints were the same.