Skip to content
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
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ repos:
- repo: https://github.com/psf/black
hooks:
- id: black
rev: "21.12b0"
rev: "22.3.0"
- repo: https://github.com/PyCQA/isort
rev: "5.10.1"
hooks:
Expand Down
4 changes: 2 additions & 2 deletions homeassistant_api/_async/asyncclient.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""Module for interacting with Home Assistant asyncronously."""
import asyncio
from urllib.parse import urljoin as join import join
from typing import Any, AsyncGenerator, Dict, List, Optional, Tuple, Union, cast
from urllib.parse import urljoin as join

import aiohttp
from aiohttp_client_cache import CachedSession
Expand Down Expand Up @@ -197,7 +197,7 @@ async def async_trigger_service(
) -> List[State]:
"""Tells Home Assistant to trigger a service, returns stats changed while being called"""
data = await self.async_request(
join("services", domain, service),
join("services", domain + "/" + service),
method="POST",
json=service_data,
)
Expand Down
2 changes: 1 addition & 1 deletion homeassistant_api/_async/models/entity.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Module for Entity and entity Group data models"""
from urllib.parse import urljoin as join import join
from typing import TYPE_CHECKING, Any, Dict, Optional, cast
from urllib.parse import urljoin as join

from pydantic import Field

Expand Down
2 changes: 1 addition & 1 deletion homeassistant_api/models/entity.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""Module for Entity and entity Group data models"""

from urllib.parse import urljoin as join
from typing import TYPE_CHECKING, Any, Dict, Optional, cast
from urllib.parse import urljoin as join

from pydantic import Field

Expand Down
4 changes: 2 additions & 2 deletions homeassistant_api/rawclient.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""Module for all interaction with homeassistant."""

from urllib.parse import urljoin as join
from typing import Any, Dict, Generator, List, Optional, Tuple, Union, cast
from urllib.parse import urljoin as join

import requests
from requests_cache import CachedSession
Expand Down Expand Up @@ -203,7 +203,7 @@ def trigger_service(
) -> Tuple[State, ...]:
"""Tells Home Assistant to trigger a service, returns stats changed while being called"""
data = self.request(
join("services", domain, service),
join("services", domain + "/" + service),
method="POST",
json=service_data,
)
Expand Down