Skip to content

Commit

Permalink
Merge pull request #44 from pdcastro/fix-python11-override
Browse files Browse the repository at this point in the history
Fix ImportError: cannot import name 'override' from 'typing' (Python 3.11)
  • Loading branch information
pdcastro authored Mar 20, 2024
2 parents 4b32bdb + 09c44f6 commit ecd940b
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Support for Octopus Intelligent Tariff in the UK."""
from datetime import timedelta, datetime, timezone
from typing import Any, override
from typing import Any
import asyncio
import logging

Expand Down Expand Up @@ -43,7 +43,6 @@ def __init__(self, hass, *, api_key, account_id, off_peak_start, off_peak_end):
def account_id(self):
return self._account_id

@override
async def _async_update_data(self) -> dict[str, Any]:
"""Fetch data from API endpoint.
Expand Down

0 comments on commit ecd940b

Please sign in to comment.