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

Update the GitHub action to target the main branch #80

Merged
merged 1 commit into from
Sep 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
name: Build and Test
on:
push:
branches: ["master"]
branches: ["main"]
pull_request:
branches: ["master"]
branches: ["main"]
workflow_dispatch:
permissions:
contents: read
Expand Down
5 changes: 2 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ repos:
args:
- --safe
- --quiet
files: ^(genius.*/.+)?[^/]+\.py$
files: ^genius.*/.+\.py$|^genius.*/tests\.py$

- repo: https://gitlab.com/pycqa/flake8
rev: 3.8.4
Expand All @@ -17,8 +17,7 @@ repos:
additional_dependencies:
- flake8-docstrings==1.5.0
- pydocstyle==5.1.1
files: ^genius.*/.+\.py$
exclude: ^genius.*/tests\.py$
files: ^genius.*/.+\.py$|^genius.*/tests\.py$

- repo: https://github.com/pycqa/isort
rev: 5.7.0
Expand Down
1 change: 0 additions & 1 deletion geniushubclient/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ class GeniusService:
"""Handle all communication to the Genius Hub."""

def __init__(self, hub_id, username=None, password=None, session=None) -> None:

self._session = session if session else aiohttp.ClientSession()

if username or password: # use the v3 Api
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ def test_when_footprint_schedule_parsed_then_footprint_schedule_has_seven_days_n

for day_int, day_text in IDAY_TO_DAY.items():
with self.subTest(day_int=day_int, day_text=day_text):

genius_zone = GeniusZone(self._device_id, self.raw_json, self.hub)

days = genius_zone.data["schedule"]["footprint"]["weekly"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ def test_when_timer_schedule_parsed_then_timer_schedule_has_seven_days_named_cor

for day_int, day_text in IDAY_TO_DAY.items():
with self.subTest(day_int=day_int, day_text=day_text):

genius_zone = GeniusZone(self._device_id, self.raw_json, self.hub)

days = genius_zone.data["schedule"]["timer"]["weekly"]
Expand Down