mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +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")
|
_LOGGER.warning("There don't appear to be any folders")
|
||||||
return False
|
return False
|
||||||
|
|
||||||
first_dir = dirs[-1]
|
first_dir = latest_dir = dirs[-1]
|
||||||
try:
|
try:
|
||||||
ftp.cwd(first_dir)
|
ftp.cwd(first_dir)
|
||||||
except error_perm as exc:
|
except error_perm as exc:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user