From 51a40c04410f59de34755cf603cfd32001406e33 Mon Sep 17 00:00:00 2001 From: Aaron Bach Date: Wed, 10 Jul 2019 23:31:03 -0600 Subject: [PATCH] Change unique_id formula for Notion entities (#25076) * Change unique_id formula for Notion entities * Don't use name --- homeassistant/components/notion/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/notion/__init__.py b/homeassistant/components/notion/__init__.py index afa08def4df..06f2404ec12 100644 --- a/homeassistant/components/notion/__init__.py +++ b/homeassistant/components/notion/__init__.py @@ -267,7 +267,8 @@ class NotionEntity(Entity): @property def unique_id(self): """Return a unique, unchanging string that represents this sensor.""" - return self._task_id + task = self._notion.tasks[self._task_id] + return '{0}_{1}'.format(self._sensor_id, task['task_type']) async def _update_bridge_id(self): """Update the entity's bridge ID if it has changed.