fix the resolution twice to fix gnome display bug
Some checks failed
Validate with hassfest / validate (push) Failing after 2s
HACS Action / HACS Action (push) Failing after 4s

This commit is contained in:
Mathieu Broillet 2024-01-01 17:45:22 +01:00
parent ff256c71be
commit f5747bd6d8
Signed by: mathieu
GPG Key ID: C0E9E0E95AF03319

View File

@ -206,6 +206,9 @@ def change_monitors_config(connection: Connection, monitors_config: dict):
if result.return_code == 0: if result.return_code == 0:
_LOGGER.info("Successfully changed monitors config on system running on %s.", connection.host) _LOGGER.info("Successfully changed monitors config on system running on %s.", connection.host)
# Run it once again, it fixes some strange Gnome display bug sometimes and it doesn't hurt
connection.run(command)
else: else:
raise HomeAssistantError("Could not change monitors config on system running on %s, check logs with debug", raise HomeAssistantError("Could not change monitors config on system running on %s, check logs with debug",
connection.host) connection.host)