Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Bizkaibus, Biscays (Spain) bus service component #22934

Merged
merged 19 commits into from May 5, 2019
Merged
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.

Always

Just for now

Fixes for complete the requirements

  • Loading branch information...
UgaitzEtxebarria committed Apr 15, 2019
commit c296c852749c8e8d1d40d7f758fb1f0449e19eb1
@@ -2,22 +2,17 @@
"""Support for Bizkaibus, Biscay (Basque Country, Spain) Bus service."""

import logging
import requests
import json

import voluptuous as vol
from bizkaibus.bizkaibus import BizkaibusData
import homeassistant.helpers.config_validation as cv

from homeassistant.const import CONF_NAME
from homeassistant.components.sensor import PLATFORM_SCHEMA
from homeassistant.helpers.entity import Entity
from bizkaibus.bizkaibus import BizkaibusData

import xml.etree.ElementTree as ET

_LOGGER = logging.getLogger(__name__)
_RESOURCE = 'http://apli.bizkaia.net/'
_RESOURCE += 'APPS/DANOK/TQWS/TQ.ASMX/GetPasoParadaMobile_JSON'

ATTR_ROUTE = 'Route'
This conversation was marked as resolved by ludeeus

This comment has been minimized.

Copy link
@ludeeus

ludeeus Apr 21, 2019

Contributor

This is not in use and can be removed.

ATTR_ROUTE_NAME = 'Route name'
This conversation was marked as resolved by ludeeus

This comment has been minimized.

Copy link
@ludeeus

ludeeus Apr 21, 2019

Contributor

This is not in use and can be removed.

@@ -95,4 +90,4 @@ def update(self):
"""Retrieve the information from API."""
bridge = BizkaibusData(self.stop, self.route)
bridge.getNextBus()
status = bridge.info
self.info = bridge.info
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.