Skip to content

Commit

Permalink
Adds missing iot_class.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonkristian committed Jul 22, 2021
1 parent e371166 commit 67704c8
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
*.egg-info
eggs
.eggs
.mypy_cache

# GITHUB Proposed Python stuff:
*.py[cod]
Expand Down
2 changes: 1 addition & 1 deletion custom_components/wasteplan_trv/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
"""Component for integrating wasteplan_trv."""
"""Component for integrating wasteplan_trv."""
1 change: 1 addition & 0 deletions custom_components/wasteplan_trv/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@
"@jonkristian"
],
"requirements": [],
"iot_class": "cloud_polling",
"version": "1.0.0"
}
18 changes: 13 additions & 5 deletions custom_components/wasteplan_trv/sensor.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,26 @@
"""Platform for sensor integration."""
from datetime import timedelta, datetime as date
from datetime import datetime as date, timedelta
import logging

import requests
import voluptuous as vol

from homeassistant.components.sensor import PLATFORM_SCHEMA
from homeassistant.const import ATTR_ATTRIBUTION
import homeassistant.helpers.config_validation as cv
from homeassistant.helpers.entity import Entity
from homeassistant.util import Throttle
import homeassistant.util.dt as dt_util
import requests
import voluptuous as vol

from .const import (
ATTRIBUTION,
CONF_BIN_NUMBER,
CONF_BIN_TYPE,
CONF_CONTAINER,
CONF_PICKUP_DAY,
SENSOR_TYPES,
URL,
)

from .const import SENSOR_TYPES, ATTRIBUTION, CONF_BIN_NUMBER, CONF_CONTAINER, CONF_BIN_TYPE, CONF_PICKUP_DAY, URL
_LOGGER = logging.getLogger(__name__)

SCAN_INTERVAL = timedelta(hours=5)
Expand Down

0 comments on commit 67704c8

Please sign in to comment.