New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Show proper name on Airzone Cloud errors #102998
Show proper name on Airzone Cloud errors #102998
Conversation
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
@@ -386,4 +387,6 @@ async def async_set_hvac_mode(self, hvac_mode: HVACMode) -> None: | |||
await self._async_update_params(params) | |||
|
|||
if slave_raise: | |||
raise HomeAssistantError(f"Mode can't be changed on slave zone {self.name}") | |||
raise HomeAssistantError( | |||
f"Mode can't be changed on slave zone {self.get_airzone_value(AZD_NAME)}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Another option which I think is more used is self.entity_id
given that a user can rename their devices etc.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Another option which I think is more used is
self.entity_id
given that a user can rename their devices etc.
Done in 1cfc888
Thanks!
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @Noltari 👍
Proposed change
Show proper entity name on Airzone Cloud errors.
After entity name code changes, if there's a HomeAssistantError raised, None will be shown for its name.
Type of change
Additional information
Checklist
black --fast homeassistant tests
)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest
.requirements_all.txt
.Updated by running
python3 -m script.gen_requirements_all
..coveragerc
.To help with the load of incoming pull requests: