Skip to content

Commit

Permalink
fix: No Trace fix (#76)
Browse files Browse the repository at this point in the history
* fix: No Trace fix

* fix: double slash fix
  • Loading branch information
GuyKh authored Nov 17, 2024
1 parent 06761d8 commit 2f82f16
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions ims_envista/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
GET_ALL_REGIONS_DATA_URL = ENVISTA_REGIONS_URL
GET_SPECIFIC_STATION_DATA_URL = ENVISTA_STATIONS_URL + "/{}"
GET_SPECIFIC_REGION_DATA_URL = ENVISTA_REGIONS_URL + "/{}"
GET_LATEST_STATION_DATA_URL = ENVISTA_STATIONS_URL + "/{}/data/{}/latest"
GET_EARLIEST_STATION_DATA_URL = ENVISTA_STATIONS_URL + "/{}/data/{}/earliest"
GET_DAILY_STATION_DATA_URL = ENVISTA_STATIONS_URL + "/{}/data/{}/daily"
GET_LATEST_STATION_DATA_URL = ENVISTA_STATIONS_URL + "/{}/data{}/latest"
GET_EARLIEST_STATION_DATA_URL = ENVISTA_STATIONS_URL + "/{}/data{}/earliest"
GET_DAILY_STATION_DATA_URL = ENVISTA_STATIONS_URL + "/{}/data{}/daily"
GET_STATION_DATA_BY_DATE_URL = GET_DAILY_STATION_DATA_URL + "/{}/{}/{}"

GET_MONTHLY_STATION_DATA_URL = ENVISTA_STATIONS_URL + "/{}/data{}/monthly"
Expand Down
4 changes: 2 additions & 2 deletions ims_envista/ims_envista.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def _shutdown(self) -> None:
asyncio.run(self._session.close())

@staticmethod
def _get_channel_id_url_part(channel_id: int) -> str:
def _get_channel_id_url_part(channel_id: int | None) -> str:
"""Get specific Channel Id url param."""
if channel_id:
return "/" + str(channel_id)
Expand All @@ -74,7 +74,7 @@ async def get_latest_station_data(
Args:
----
station_id (int): IMS Station Id
channel_id (int): [Optional] Specific Channel Id
channel_id (int | None): [Optional] Specific Channel Id
Returns:
-------
Expand Down

0 comments on commit 2f82f16

Please sign in to comment.