-
-
Notifications
You must be signed in to change notification settings - Fork 30.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Pressure and Altitude discovery schemas for Matter Eve Weather device #125690
Add Pressure and Altitude discovery schemas for Matter Eve Weather device #125690
Conversation
Hey there @home-assistant/matter, mind taking a look at this pull request as it has been labeled with an integration ( Code owner commandsCode owners of
|
I don't understand why testing can't find the Pressure attribute.
It is defined here: |
It's likely not included in the library version that HA uses at the moment: https://github.com/home-assistant/core/blob/dev/homeassistant/components/matter/manifest.json |
Thanks. I changed it in the manifest.json file but it still fails.
|
Did you run HA once so it installed the version you specified in the manifest ? |
Now I only have 1 failing checks
|
Fixed by 0d55f5d |
Someone could help me to fix this error?
|
For next time, you need to look carefully at the format of the node fixtures. Its not exactly the same as the diagnostics dump. Basically its only the "node" section of the diagnostics dump. |
Pressure AttributeId: 319422484 (0x00130a0014) - Value type: float32
Bump to python-matter-server==6.5.0
Bump requirements to python-matter-server 6.5.0
Bump requirements to python-matter-server 6.5.0
7bbb614
to
bfe6d30
Compare
Is there a script to extract it or do you have to do it by hand? |
Just do it by hand. You simply move the "node" section one level up and remove the rest. I have now adjusted this PR for you so for this PR its not needed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved from my PoV but can use an extra pair of eyes as I finished this PR's tests
entity_description=MatterNumberEntityDescription( | ||
key="EveWeatherAltitude", | ||
entity_category=EntityCategory.CONFIG, | ||
translation_key="altitude", | ||
native_max_value=9000, | ||
native_min_value=0, | ||
native_unit_of_measurement=UnitOfLength.METERS, | ||
native_step=1, | ||
mode=NumberMode.BOX, | ||
), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no device class?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added
@@ -92,6 +92,16 @@ async def eve_energy_plug_patched_node_fixture( | |||
) | |||
|
|||
|
|||
@pytest.fixture(name="eve_weather_sensor_node") | |||
async def eve_weather_sensor_node_fixture( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please don't duplicate the same fixture in different modules. Put it in the conftest.py
module instead. Those fixtures can be accessed by the whole test package.
Breaking change
Proposed change
Altitude
"1/319486977/319422483": 40.0,
Pressure
"1/319486977/319422484": 1008.5,
Type of change
Additional information
Checklist
ruff format homeassistant tests
)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest
.requirements_all.txt
.Updated by running
python3 -m script.gen_requirements_all
.To help with the load of incoming pull requests:
Local testing: