Skip to content

Commit 79ab9ec

Browse files
committed
Update CEBL version to 1.62 in manifest.json and README.md, reflecting the latest enhancements in the integration, including a complete reimagining of the sensor structure for improved user experience.
1 parent 85e376f commit 79ab9ec

File tree

3 files changed

+18
-18
lines changed

3 files changed

+18
-18
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
---
1818

19-
## 🚀 **What's New in v1.61 "Simplified Excellence"**
19+
## 🚀 **What's New in v1.62 "Simplified Excellence"**
2020

2121
A **complete reimagining** of the CEBL integration! We've consolidated multiple sensors into one powerful, comprehensive sensor per team for the ultimate user experience.
2222

custom_components/cebl/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"domain": "cebl",
33
"name": "CEBL Tracker",
4-
"version": "1.61",
4+
"version": "1.62",
55
"documentation": "https://github.com/ViceBooster/HA-CEBL",
66
"requirements": [],
77
"dependencies": [],

custom_components/cebl/sensor.py

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -198,11 +198,11 @@ def _get_team_fixture(self):
198198
team_fixtures = []
199199
for fixture in fixtures:
200200
try:
201-
home_team_id = str(fixture['homeTeam']['id'])
202-
away_team_id = str(fixture['awayTeam']['id'])
203-
204-
if home_team_id == self._team_id or away_team_id == self._team_id:
205-
team_fixtures.append(fixture)
201+
home_team_id = str(fixture['homeTeam']['id'])
202+
away_team_id = str(fixture['awayTeam']['id'])
203+
204+
if home_team_id == self._team_id or away_team_id == self._team_id:
205+
team_fixtures.append(fixture)
206206
except (KeyError, TypeError) as e:
207207
_LOGGER.debug(f"Invalid fixture data: {e}")
208208
continue
@@ -310,20 +310,20 @@ def _get_team_live_data(self):
310310

311311
for game_id, live_data in live_scores.items():
312312
try:
313-
# Check if this team is in this game
314-
fixture = None
313+
# Check if this team is in this game
314+
fixture = None
315315
fixtures = data.get('fixtures', [])
316316
for f in fixtures:
317-
if f.get('id') == int(game_id):
318-
fixture = f
319-
break
320-
321-
if fixture:
322-
home_team_id = str(fixture['homeTeam']['id'])
323-
away_team_id = str(fixture['awayTeam']['id'])
317+
if f.get('id') == int(game_id):
318+
fixture = f
319+
break
324320

325-
if home_team_id == self._team_id or away_team_id == self._team_id:
326-
return live_data, fixture
321+
if fixture:
322+
home_team_id = str(fixture['homeTeam']['id'])
323+
away_team_id = str(fixture['awayTeam']['id'])
324+
325+
if home_team_id == self._team_id or away_team_id == self._team_id:
326+
return live_data, fixture
327327
except (KeyError, TypeError, ValueError) as e:
328328
_LOGGER.debug(f"Error processing live data for game {game_id}: {e}")
329329
continue

0 commit comments

Comments
 (0)