mirror of
https://github.com/home-assistant/core.git
synced 2025-11-09 02:49:40 +00:00
Upgrade pylint to 2.6.0 (#39363)
This commit is contained in:
@@ -158,7 +158,7 @@ class CoreState(enum.Enum):
|
||||
final_write = "FINAL_WRITE"
|
||||
stopped = "STOPPED"
|
||||
|
||||
def __str__(self) -> str:
|
||||
def __str__(self) -> str: # pylint: disable=invalid-str-returned
|
||||
"""Return the event."""
|
||||
return self.value # type: ignore
|
||||
|
||||
@@ -523,7 +523,7 @@ class EventOrigin(enum.Enum):
|
||||
local = "LOCAL"
|
||||
remote = "REMOTE"
|
||||
|
||||
def __str__(self) -> str:
|
||||
def __str__(self) -> str: # pylint: disable=invalid-str-returned
|
||||
"""Return the event."""
|
||||
return self.value # type: ignore
|
||||
|
||||
@@ -1483,6 +1483,7 @@ class Config:
|
||||
unit_system: Optional[str] = None,
|
||||
location_name: Optional[str] = None,
|
||||
time_zone: Optional[str] = None,
|
||||
# pylint: disable=dangerous-default-value # _UNDEFs not modified
|
||||
external_url: Optional[Union[str, dict]] = _UNDEF,
|
||||
internal_url: Optional[Union[str, dict]] = _UNDEF,
|
||||
) -> None:
|
||||
|
||||
Reference in New Issue
Block a user