This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Custom component to interface with vattenfall | |
""" | |
import logging | |
from datetime import datetime, timedelta | |
import pytz | |
import voluptuous as vol | |
from homeassistant.components.sensor import PLATFORM_SCHEMA |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import asyncio | |
import json | |
import logging | |
import voluptuous as vol | |
from datetime import datetime | |
from homeassistant.components.sensor import PLATFORM_SCHEMA |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Custom component to interface with ticketmaster | |
""" | |
import logging | |
from datetime import datetime | |
from urllib.parse import urlencode | |
import pytz | |
import voluptuous as vol |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import asyncio | |
import logging | |
import voluptuous as vol | |
from datetime import timedelta | |
from homeassistant.components.sensor import PLATFORM_SCHEMA |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import logging | |
from datetime import timedelta | |
import voluptuous as vol | |
from homeassistant.const import CONF_IP_ADDRESS, CONF_API_KEY | |
from homeassistant.components.sensor import PLATFORM_SCHEMA | |
from homeassistant.helpers.entity import Entity |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import logging | |
from datetime import timedelta | |
from homeassistant.helpers.entity import Entity | |
from homeassistant.util import Throttle | |
MAPPING = { | |
'usd': 4, | |
'eur': 12, | |
'gbp': 16 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import logging | |
from homeassistant.helpers.entity import Entity | |
class kris: | |
URL = "http://api.krisinformation.se/v1/feed?format=json" | |
@staticmethod |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import logging | |
from homeassistant.helpers.entity import Entity | |
class nooa: | |
URL = "https://services.swpc.noaa.gov/products/noaa-scales.json" | |
@staticmethod |