Skip to content

Commit

Permalink
Merge pull request #20 from craibo/2022.6.3
Browse files Browse the repository at this point in the history
2022.6.3
  • Loading branch information
craibo authored Jun 9, 2022
2 parents b7f27eb + 67bfc9f commit 2cd072a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions custom_components/ha_strava/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ async def post(self, request: Request):
"""Handle incoming post request"""
request_host = request.headers.get("Host", None)
_LOGGER.debug(
f"Strava Webhook Endppoint received a POST request from: {request_host}"
f"Strava Webhook Endpoint received a POST request from: {request_host}"
)

try:
Expand All @@ -398,7 +398,7 @@ async def renew_webhook_subscription(
):

"""
Function to check whether HASS has already subscribed to Strava Webhook with it's public URL
Function to check whether HASS has already subscribed to Strava Webhook with its public URL
Re-creates a subscription if there was none before or if the public URL has changed
"""
config_data = {
Expand Down
4 changes: 2 additions & 2 deletions custom_components/ha_strava/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from homeassistant.core import callback
from homeassistant.helpers import config_entry_oauth2_flow
from homeassistant.helpers.entity_registry import (
async_get_registry,
async_get,
async_entries_for_config_entry,
RegistryEntryDisabler,
)
Expand Down Expand Up @@ -196,7 +196,7 @@ async def async_step_init(self, user_input=None):
return self.async_abort(reason="no_config")

if user_input is not None:
_entity_registry = await async_get_registry(hass=self.hass)
_entity_registry = await async_get(hass=self.hass)
entities = async_entries_for_config_entry(
registry=_entity_registry,
config_entry_id=ha_strava_config_entries[0].entry_id,
Expand Down
4 changes: 2 additions & 2 deletions custom_components/ha_strava/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,6 @@
CONF_SENSOR_1: CONF_SENSOR_DURATION,
CONF_SENSOR_2: CONF_SENSOR_PACE,
CONF_SENSOR_3: CONF_SENSOR_DISTANCE,
CONF_SENSOR_4: CONF_SENSOR_TROPHIES,
CONF_SENSOR_5: CONF_SENSOR_KUDOS,
CONF_SENSOR_4: CONF_SENSOR_SPEED,
CONF_SENSOR_5: CONF_SENSOR_ELEVATION,
}

0 comments on commit 2cd072a

Please sign in to comment.