Merge pull request #42 from adv3nt3/fix/entity-registry-dead-code
fix: remove dead code and duplicate set items in entity_registry.py
This commit is contained in:
@@ -44,7 +44,6 @@ COMMON_ENGLISH_WORDS = {
|
|||||||
"chance",
|
"chance",
|
||||||
"chase",
|
"chase",
|
||||||
"hunter",
|
"hunter",
|
||||||
"hunter",
|
|
||||||
"dash",
|
"dash",
|
||||||
"flash",
|
"flash",
|
||||||
"star",
|
"star",
|
||||||
@@ -78,8 +77,6 @@ COMMON_ENGLISH_WORDS = {
|
|||||||
"january",
|
"january",
|
||||||
"february",
|
"february",
|
||||||
"march",
|
"march",
|
||||||
"april",
|
|
||||||
"june",
|
|
||||||
"july",
|
"july",
|
||||||
"august",
|
"august",
|
||||||
"september",
|
"september",
|
||||||
@@ -597,7 +594,6 @@ class EntityRegistry:
|
|||||||
Returns list of canonical names found.
|
Returns list of canonical names found.
|
||||||
"""
|
"""
|
||||||
found = []
|
found = []
|
||||||
query.lower()
|
|
||||||
|
|
||||||
for canonical, info in self.people.items():
|
for canonical, info in self.people.items():
|
||||||
names_to_check = [canonical] + info.get("aliases", [])
|
names_to_check = [canonical] + info.get("aliases", [])
|
||||||
|
|||||||
Reference in New Issue
Block a user