mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-25 18:16:32 +00:00
Ignore false positive no-member error (#5189)
This commit is contained in:
parent
aa7f4aafeb
commit
eac167067e
@ -113,8 +113,11 @@ class CoreSys:
|
|||||||
"""Return system timezone."""
|
"""Return system timezone."""
|
||||||
if self.config.timezone:
|
if self.config.timezone:
|
||||||
return self.config.timezone
|
return self.config.timezone
|
||||||
|
# pylint bug with python 3.12.4 (https://github.com/pylint-dev/pylint/issues/9811)
|
||||||
|
# pylint: disable=no-member
|
||||||
if self.host.info.timezone:
|
if self.host.info.timezone:
|
||||||
return self.host.info.timezone
|
return self.host.info.timezone
|
||||||
|
# pylint: enable=no-member
|
||||||
return "UTC"
|
return "UTC"
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
Loading…
x
Reference in New Issue
Block a user