Skip to content

Commit

Permalink
Mark all constants as final
Browse files Browse the repository at this point in the history
  • Loading branch information
Limych committed Feb 26, 2022
1 parent bf2a4fb commit 42760d2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
23 changes: 12 additions & 11 deletions custom_components/car_wash/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
For more details about this platform, please refer to the documentation at
https://github.com/Limych/ha-car_wash/
"""
from typing import Final

from homeassistant.components.weather import (
ATTR_CONDITION_EXCEPTIONAL,
Expand All @@ -19,12 +20,12 @@
)

# Base component constants
NAME = "Car Wash"
DOMAIN = "car_wash"
VERSION = "1.5.1"
ISSUE_URL = "https://github.com/Limych/ha-car_wash/issues"
NAME: Final = "Car Wash"
DOMAIN: Final = "car_wash"
VERSION: Final = "1.5.2-alpha"
ISSUE_URL: Final = "https://github.com/Limych/ha-car_wash/issues"

STARTUP_MESSAGE = f"""
STARTUP_MESSAGE: Final = f"""
-------------------------------------------------------------------
{NAME}
Version: {VERSION}
Expand All @@ -35,18 +36,18 @@
"""

# Icons
ICON = "mdi:car-wash"
ICON: Final = "mdi:car-wash"

# Configuration and options
CONF_WEATHER = "weather"
CONF_DAYS = "days"
CONF_WEATHER: Final = "weather"
CONF_DAYS: Final = "days"

# Defaults
DEFAULT_NAME = "Car Wash"
DEFAULT_DAYS = 2
DEFAULT_NAME: Final = "Car Wash"
DEFAULT_DAYS: Final = 2


BAD_CONDITIONS = [
BAD_CONDITIONS: Final = [
ATTR_CONDITION_LIGHTNING_RAINY,
ATTR_CONDITION_RAINY,
ATTR_CONDITION_POURING,
Expand Down
2 changes: 1 addition & 1 deletion custom_components/car_wash/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"domain": "car_wash",
"name": "Car Wash",
"version": "1.5.1",
"version": "1.5.2-alpha",
"documentation": "https://github.com/Limych/ha-car_wash",
"issue_tracker": "https://github.com/Limych/ha-car_wash/issues",
"dependencies": [
Expand Down

0 comments on commit 42760d2

Please sign in to comment.