Skip to content
This repository was archived by the owner on May 14, 2026. It is now read-only.

Commit cfefae8

Browse files
authored
Merge pull request #40 from briis/revert-39-release_3.5.0
Revert "Release 3.5.0"
2 parents 4954e5e + 3b26e87 commit cfefae8

10 files changed

Lines changed: 33 additions & 137 deletions

File tree

.devcontainer/Dockerfile

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,23 @@
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

.devcontainer/devcontainer.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,5 @@
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
}

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
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
134132
realease.md
135-
*.pyc

CHANGELOG.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
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:

custom_components/meteobridge/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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(

custom_components/meteobridge/entity.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
import homeassistant.helpers.device_registry as dr
55
from homeassistant.config_entries import ConfigEntry
66
from homeassistant.const import ATTR_ATTRIBUTION
7-
from homeassistant.helpers.entity import DeviceInfo
7+
from homeassistant.helpers.entity import DeviceInfo, Entity
88
from homeassistant.helpers.update_coordinator import CoordinatorEntity
99

1010
from .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__(

custom_components/meteobridge/manifest.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,13 @@
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+
}

custom_components/meteobridge/sensor.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
DEGREE,
1717
UnitOfIrradiance,
1818
UnitOfTemperature,
19+
UV_INDEX,
1920
)
2021
from homeassistant.core import HomeAssistant
2122
from homeassistant.helpers.typing import StateType
@@ -33,16 +34,16 @@
3334
from .models import MeteobridgeEntryData
3435

3536

36-
@dataclass(frozen=True, kw_only=True)
37+
@dataclass
3738
class 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
4647
class 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,

hacs.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"name": "Meteobridge Datalogger Integration",
33
"content_in_root": false,
4-
"homeassistant": "2026.2.0"
5-
}
4+
"homeassistant": "2023.1.0"
5+
}

meteobridge_ha_update.patch

Lines changed: 0 additions & 99 deletions
This file was deleted.

0 commit comments

Comments
 (0)