Refactor auth.login_ex
This commit shifts the auth.login_ex method so that it calls into
various helper methods in auth_/login_ex_imply.py. The helper
methods allow easier separation of sync vs async methods and
consistent typing for responses and arguments.
Various typing fixes are also applied.
A new auth.login_ex response `DENIED` is generated if user
successfully authenticates but has no API access.
Refactor auth.login_ex
This commit shifts the auth.login_ex method so that it calls into
various helper methods in auth_/login_ex_imply.py. The helper
methods allow easier separation of sync vs async methods and
consistent typing for responses and arguments.
Various typing fixes are also applied.
A new auth.login_ex response `DENIED` is generated if user
successfully authenticates but has no API access.
Refactor auth.login_ex
This commit shifts the auth.login_ex method so that it calls into
various helper methods in auth_/login_ex_imply.py. The helper
methods allow easier separation of sync vs async methods and
consistent typing for responses and arguments.
NAS-139598 / 26.0.0-BETA.1 / ignore AddressDoesNotExist in interface.sync (#18222)
Fix a bug where interface.sync crashes on a freshly installed HA machine
that has dhcp enabled on the external network that it is connected to.
When stopping dhcpcd the addresses assigned to the interface are
removed. We'll ignore missing addresses when we call `remove_address`.
It's not an error.
NAS-139709 / 26.0.0-BETA.1 / Fix ransomwared service (#18217)
This commit fixes the ransomwared service shim to use the correct
systemd unit name "rwd" for start/stop/reload operations.
NAS-139819 / 26.0.0-BETA.1 / fix ValueError crash in sync_size_if_changed (#18218)
In a ticket for an unrelated issue, I see a ton of spam where this is
crashing with a `ValueError`. This particular users system has an MMC
device attached which is like a CD device in which there is no size.
Prevent the crash on devices like that so we don't pollute the logs.