Skip to content

[Bug]: set_manual_control raises wrong exception #283

@jtgn

Description

@jtgn

Describe the Bug

The set_manual_control method in hops_tado.py raises TadoNotSupportedException when receiving a valid response from TadoX API.

Example:
request: t.set_manual_control(room_id=1, power = "ON", termination_type= "MANUAL", m_sec = 60,m_temp=18.5)
response from Tado API: '{'success': True}' (HTTP 200)

Expected behavior:
return 0

Actual behavior:
'PyTado.exceptions.TadoNotSupportedException: Unexpected response from set_manual_control'


Environment

  • PyTado Version: current master (ad079c3)
  • Tado Generation: line_x

Logs and Error Messages

File "/usr/local/lib/python3.11/site-packages/PyTado/interface/api/hops_tado.py", line 407, in set_manual_control
    raise TadoNotSupportedException("Unexpected response from set_manual_control")
PyTado.exceptions.TadoNotSupportedException: Unexpected response from set_manual_control

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions