You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Library Bug] TypeError: 'Service' object is not callable #243
Describe the bug
This is a new bug as of v6.0.0, this code worked in v5.0.3
I have checked the documentation and don't see anything that changed regarding this
Traceback (most recent call last):
File "C:\Program Files\JetBrains\PyCharm Community Edition 2024.2.3\plugins\python-ce\helpers\pydev\pydevd.py", line 1570, in _exec
pydev_imports.execfile(file, globals, locals) # execute the script
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\JetBrains\PyCharm Community Edition 2024.2.3\plugins\python-ce\helpers\pydev\_pydev_imps\_pydev_execfile.py", line 18, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc)
~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "minimumreproduceable.py", line 12, in <module>
light.turn_on(entity_id="light.habitat_strip_socket_2")
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: 'Service' object is not callable
Screenshots
Debugger shows that turn_on is a valid service
Desktop (please complete the following information):
Python 3.14 (tried in Docker and natively on Windows)
HomeAssistantAPI Version: [e.g. 0.0.3] 6.0.0
Additional context
Add any other context about the problem here.
Activity
GrandMoff100 commentedon May 6, 2026
Good catch! Thanks