14 lines
417 B
Python
14 lines
417 B
Python
from __future__ import annotations
|
|
|
|
from typing import Dict, Any
|
|
|
|
class WeatherStationAdapter:
|
|
"""Stub weather station adapter for MVP."""
|
|
|
|
def __init__(self, station_id: str):
|
|
self.station_id = station_id
|
|
|
|
def read_forecast(self) -> Dict[str, Any]:
|
|
# Return a tiny fake forecast payload
|
|
return {"station_id": self.station_id, "forecast": {"temperature": 22.0, "wind_speed": 5.0}}
|