Skip to content

Commit 5ad17ff

Browse files
authored
Merge pull request #2357 from AppDaemon:unnecessary-warning
silenced unnecessary warning
2 parents 31f527d + 265d289 commit 5ad17ff

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

appdaemon/state.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,9 @@ async def add_entity(
538538
) -> None:
539539
"""Adds an entity to the internal state registry and fires the ``__AD_ENTITY_ADDED`` event"""
540540
if self.entity_exists(namespace, entity):
541-
self.logger.warning("%s already exists, will not be adding it", entity)
541+
# No warning is necessary because this method gets called twice for the app entities because of
542+
# create_initial_threads and then again during start_app
543+
# self.logger.warning("%s already exists, will not be adding it", entity)
542544
return
543545

544546
state = {

0 commit comments

Comments
 (0)