Skip to content

Commit

Permalink
Code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
pippyn committed Sep 1, 2022
1 parent fd795bb commit 9ef5707
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 10 deletions.
2 changes: 1 addition & 1 deletion custom_components.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"sensor.afvalbeheer": {
"version": "4.9.6",
"version": "5.0.1",
"local_location": "/custom_components/afvalbeheer/__init__.py",
"remote_location": "https://raw.githubusercontent.com/pippyn/Home-Assistant-Sensor-Afvalbeheer/master/custom_components/afvalbeheer/__init__.py",
"visit_repo": "https://github.com/pippyn/Home-Assistant-Sensor-Afvalbeheer",
Expand Down
5 changes: 3 additions & 2 deletions custom_components/afvalbeheer/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
"""
Sensor component for waste pickup dates from dutch and belgium waste collectors
Original Author: Pippijn Stortelder
Current Version: 5.0.0 202200829
Current Version: 5.0.1 202200901
20220829 - Major change: Added Calendar support (credits @WouterTuinstra)
20220829 - Give persistant notifications unique id's
20220901 - Code cleanup
Example config:
Configuration.yaml:
Expand Down Expand Up @@ -39,7 +40,7 @@
from .API import Get_WasteData_From_Config


__version__ = "5.0.0"
__version__ = "5.0.1"


_LOGGER = logging.getLogger(__name__)
Expand Down
6 changes: 1 addition & 5 deletions custom_components/afvalbeheer/calendar.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,8 @@

from .const import DOMAIN, CONF_ID

_LOGGER = logging.getLogger(__name__)

ATTR_WASTE_COLLECTOR = "Wastecollector"
ATTR_HIDDEN = "Hidden"
ATTR_SORT_DATE = "Sort_date"
ATTR_DAYS_UNTIL = "Days_until"
_LOGGER = logging.getLogger(__name__)


def setup_platform(hass, config, async_add_entities, discovery_info=None):
Expand Down
2 changes: 1 addition & 1 deletion custom_components/afvalbeheer/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
"rsa",
"pycryptodome"
],
"version": "5.0.0"
"version": "5.0.1"
}
1 change: 0 additions & 1 deletion custom_components/afvalbeheer/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ async def async_setup_platform(hass, config, async_add_entities, discovery_info=
day_of_week = config.get(CONF_DAY_OF_WEEK)
day_of_week_only = config.get(CONF_DAY_OF_WEEK_ONLY)
always_show_day = config.get(CONF_ALWAYS_SHOW_DAY)
print_waste_type = config.get(CONF_PRINT_AVAILABLE_WASTE_TYPES)

if date_object == True:
date_only = 1
Expand Down

0 comments on commit 9ef5707

Please sign in to comment.