Skip to content

Commit

Permalink
Merge pull request #17 from KTibow/patch-1
Browse files Browse the repository at this point in the history
Improve GitHub Actions
  • Loading branch information
itchannel authored and github-actions[bot] committed Nov 5, 2020
2 parents bfd51f7 + fef116f commit 0e20e5b
Show file tree
Hide file tree
Showing 8 changed files with 184 additions and 163 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/combined.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: "Validation And Formatting"
on:
push:
pull_request:
schedule:
- cron: '0 0 * * *'
jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
name: Download repo
with:
fetch-depth: 0
- uses: actions/setup-python@v2
name: Setup Python
- uses: actions/cache@v2
name: Cache
with:
path: |
~/.cache/pip
key: custom-component-ci
- uses: hacs/integration/action@main
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CATEGORY: integration
- uses: KTibow/ha-blueprint@stable
name: CI
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
18 changes: 0 additions & 18 deletions .github/workflows/validate.yaml

This file was deleted.

9 changes: 4 additions & 5 deletions custom_components/fordpass/__init__.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
"""The FordPass integration."""
import asyncio
from datetime import timedelta
import logging
from datetime import timedelta

import async_timeout
from dotted.collection import DottedDict
from .fordpass_new import Vehicle
import voluptuous as vol

from dotted.collection import DottedDict
from homeassistant.config_entries import ConfigEntry
from homeassistant.const import CONF_PASSWORD, CONF_USERNAME
from homeassistant.core import HomeAssistant
Expand All @@ -19,10 +17,11 @@
)

from .const import DOMAIN, MANUFACTURER, VEHICLE, VIN
from .fordpass_new import Vehicle

CONFIG_SCHEMA = vol.Schema({DOMAIN: vol.Schema({})}, extra=vol.ALLOW_EXTRA)

PLATFORMS = ["lock","sensor", "switch"]
PLATFORMS = ["lock", "sensor", "switch"]

_LOGGER = logging.getLogger(__name__)

Expand Down
3 changes: 1 addition & 2 deletions custom_components/fordpass/config_flow.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
"""Config flow for FordPass integration."""
import logging

from fordpass import Vehicle
import voluptuous as vol

from fordpass import Vehicle
from homeassistant import config_entries, core, exceptions
from homeassistant.const import CONF_PASSWORD, CONF_USERNAME

Expand Down
2 changes: 1 addition & 1 deletion custom_components/fordpass/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@

MANUFACTURER = "Ford Motor Company"

VEHICLE = "Ford Vehicle"
VEHICLE = "Ford Vehicle"
Loading

0 comments on commit 0e20e5b

Please sign in to comment.