This repository was archived by the owner on May 14, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
custom_components/meteobridge Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- FROM ghcr.io/home-assistant/home-assistant:2026.2
1+ FROM mcr.microsoft.com/devcontainers/python:1-3.13
22
3- # Optional corporate certificate
4- COPY .devcontainer/corp.crt* /tmp/
5- RUN if [ -f /tmp/corp.crt ]; then \
6- cp /tmp/corp.crt /usr/local/share/ca-certificates/corp.crt && \
7- update-ca-certificates; \
8- fi
3+ RUN apt update \
4+ && sudo apt install -y libpcap-dev ffmpeg vim curl jq \
5+ && mkdir -p /opt \
6+ && cd /opt \
7+ && git clone --depth=1 -b dev https://github.com/home-assistant/core.git hass \
8+ && python3 -m pip --disable-pip-version-check install --upgrade ./hass \
9+ && python3 -m pip install flake8
910
10- RUN pip3 install --no-cache-dir \
11- flake8 \
12- pymeteobridgedata \
13- debugpy
11+ # install requirements
12+ RUN pip3 install -r /opt/hass/requirements.txt
1413
15- RUN mkdir -p /config/custom_components
14+ # copy configuration file
15+ RUN mkdir /opt/hass/config
16+ RUN mkdir /opt/hass/config/custom_components
17+ COPY .devcontainer/configuration.yaml /opt/hass/config/configuration.yaml
1618
17- COPY .devcontainer/configuration.yaml /config/configuration.yaml
19+ # link to the meteobridge integration folder
20+ RUN ln -s /workspaces/HA_Meteobridge/custom_components/meteobridge/ /opt/hass/config/custom_components/meteobridge
1821
1922# Set the default shell to bash instead of sh
20- ENV SHELL=/bin/bash
23+ ENV SHELL=/bin/bash
Original file line number Diff line number Diff line change 4242 " !include_dir_merge_list scalar" ,
4343 " !include_dir_merge_named scalar"
4444 ]
45- },
46- "postCreateCommand" : " ln -sf ${containerWorkspaceFolder}/custom_components/meteobridge /config/custom_components/meteobridge"
45+ }
4746}
Original file line number Diff line number Diff line change 1- .devcontainer /corp.crt
2-
31# Byte-compiled / optimized / DLL files
42__pycache__ /
53* .py [cod ]
@@ -132,4 +130,3 @@ dmypy.json
132130.DS_Store
133131.devcontainer /secrets.yaml
134132realease.md
135- * .pyc
Original file line number Diff line number Diff line change 11# Change Log
22
3- ## [ 3.5.0] - 2026-05-13
4- - Update Meteobridge Integration to the last Home Assistant requirement (tested on 2026.2.3)
5-
63## [ 3.4.0] - 2025-04-13
74- Meteobridge Integration mantenance restored.
85- Added Binary Sensor for:
Original file line number Diff line number Diff line change @@ -106,7 +106,6 @@ async def async_update_data():
106106 coordinator = DataUpdateCoordinator (
107107 hass ,
108108 _LOGGER ,
109- config_entry = entry ,
110109 name = DOMAIN ,
111110 update_method = async_update_data ,
112111 update_interval = timedelta (
Original file line number Diff line number Diff line change 44import homeassistant .helpers .device_registry as dr
55from homeassistant .config_entries import ConfigEntry
66from homeassistant .const import ATTR_ATTRIBUTION
7- from homeassistant .helpers .entity import DeviceInfo
7+ from homeassistant .helpers .entity import DeviceInfo , Entity
88from homeassistant .helpers .update_coordinator import CoordinatorEntity
99
1010from .const import DEFAULT_ATTRIBUTION , DEFAULT_BRAND , DOMAIN
1111
1212
13- class MeteobridgeEntity (CoordinatorEntity ):
13+ class MeteobridgeEntity (CoordinatorEntity , Entity ):
1414 """Base class for Meteobridge entities."""
1515
1616 def __init__ (
Original file line number Diff line number Diff line change 55 " @briis" ,
66 " @iu1jvo"
77 ],
8- "integration_type" : " device" ,
98 "config_flow" : true ,
109 "dependencies" : [],
11- "documentation" : " https://github.com/iu1jvo /meteobridge" ,
10+ "documentation" : " https://github.com/briis /meteobridge" ,
1211 "iot_class" : " local_polling" ,
13- "issue_tracker" : " https://github.com/iu1jvo /meteobridge/issues" ,
12+ "issue_tracker" : " https://github.com/briis /meteobridge/issues" ,
1413 "requirements" : [
1514 " pymeteobridgedata==0.1.21"
1615 ],
17- "version" : " 3.5 .0"
18- }
16+ "version" : " 3.4 .0"
17+ }
Original file line number Diff line number Diff line change 1616 DEGREE ,
1717 UnitOfIrradiance ,
1818 UnitOfTemperature ,
19+ UV_INDEX ,
1920)
2021from homeassistant .core import HomeAssistant
2122from homeassistant .helpers .typing import StateType
3334from .models import MeteobridgeEntryData
3435
3536
36- @dataclass ( frozen = True , kw_only = True )
37+ @dataclass
3738class MeteobridgeRequiredKeysMixin :
3839 """Mixin for required keys."""
3940
40- unit_type : str = "none"
41- always_add : bool = True
42- attribute_field : str | None = None
41+ unit_type : str
42+ always_add : bool
43+ attribute_field : str
4344
4445
45- @dataclass ( frozen = True , kw_only = True )
46+ @dataclass
4647class MeteobridgeSensorEntityDescription (
4748 SensorEntityDescription , MeteobridgeRequiredKeysMixin
4849):
@@ -191,7 +192,7 @@ class MeteobridgeSensorEntityDescription(
191192 key = "uv" ,
192193 name = "UV Index" ,
193194 icon = "mdi:weather-sunny-alert" ,
194- native_unit_of_measurement = None ,
195+ native_unit_of_measurement = UV_INDEX ,
195196 state_class = SensorStateClass .MEASUREMENT ,
196197 unit_type = "none" ,
197198 always_add = False ,
Original file line number Diff line number Diff line change 11{
22 "name" : " Meteobridge Datalogger Integration" ,
33 "content_in_root" : false ,
4- "homeassistant" : " 2026.2 .0"
5- }
4+ "homeassistant" : " 2023.1 .0"
5+ }
Load diff This file was deleted.
You can’t perform that action at this time.
0 commit comments