home-assistant / home-assistant/core

HA Lacrosse integration bug with led=false set, but LED still blinking

Open Beginner friendly
#181,069 1 comment 0 reactions 0 assignees View on GitHub
integration: lacrosse
Dominant language
Python
Stars
90.5k
Forks
38.6k
Avg merge
1d 3h
Merged PRs (30d)
597

Description

### The problem

As described a year ago already, there is a problem with the integration "Lacrosse" turning off the LED blinking, but that is not working:
https://github.com/home-assistant/core/issues/134578#issue-2768148567

A thorough test with AI helped to pinpoint down the behaviour due to sending too quick "open()" and the command for turning off LED.

That is not working well. A time difference of 2-3 seconds between the commands helps to savely turn off the LED blinking.

Changes needed in "sensor.py":
"from datetime import datetime, timedelta
import logging
from typing import Any, override"

--> needs to be changed into:
"from datetime import datetime, timedelta
import logging
import time
from typing import Any, override"

AND
" try:
lacrosse = pylacrosse.LaCrosse(usb_device, baud)
lacrosse.open()
time.sleep(3)
except SerialException as exc:"

--> needs change into:
" try:
lacrosse = pylacrosse.LaCrosse(usb_device, baud)
lacrosse.open()
time.sleep(3)
except SerialException as exc:"

That helped turning off the LED savely.

### What version of Home Assistant Core has the issue?

2026.8.3

### What was the last working version of Home Assistant Core?

_No response_

### What type of installation are you running?

Home Assistant Container

### Integration causing the issue

Lacrosse

### Link to integration documentation on our website

https://www.home-assistant.io/integrations/lacrosse/

### Diagnostics information

_No response_

### Example YAML snippet

```yaml

```

### Anything in the logs that might be useful for us?

```txt

```

### Additional information

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by opening the Lacrosse integration's sensor.py and tracing the device open call and the command that disables LED blinking. Confirm the reported timing behavior, then verify that the LED reliably stops blinking after the change and that the integration still handles serial errors normally.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.