mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
'latest_dir' referenced before assignment (#19952)
* 'latest_dir' referenced before assignment local variable 'latest_dir' referenced before assignment * Better fix
This commit is contained in:
parent
ba21608042
commit
418fa226e6
@ -107,7 +107,7 @@ class XiaomiCamera(Camera):
|
||||
_LOGGER.warning("There don't appear to be any folders")
|
||||
return False
|
||||
|
||||
first_dir = dirs[-1]
|
||||
first_dir = latest_dir = dirs[-1]
|
||||
try:
|
||||
ftp.cwd(first_dir)
|
||||
except error_perm as exc:
|
||||
|
Loading…
x
Reference in New Issue
Block a user