Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitedd0ff8

Browse files
authored
Merge pull request#28 from gonzotek/master
2 parentsbf46ecd +509badc commitedd0ff8

File tree

4 files changed

+28
-10
lines changed

4 files changed

+28
-10
lines changed

‎.github/workflows/hacs.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name:HACS Action
2+
3+
on:
4+
push:
5+
pull_request:
6+
schedule:
7+
-cron:"0 0 * * *"
8+
9+
jobs:
10+
hacs:
11+
name:HACS Action
12+
runs-on:"ubuntu-latest"
13+
steps:
14+
-name:HACS Action
15+
uses:"hacs/action@main"
16+
with:
17+
category:"integration"
18+
ignore:"images"

‎custom_components/nfl/__init__.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -201,10 +201,14 @@ async def async_get_state(config) -> dict:
201201
values["date"]=event["date"]
202202
values["kickoff_in"]=arrow.get(event["date"]).humanize()
203203
values["venue"]=event["competitions"][0]["venue"]["fullName"]
204-
values["location"]="%s, %s"% (
205-
event["competitions"][0]["venue"]["address"]["city"],
206-
event["competitions"][0]["venue"]["address"]["state"],
207-
)
204+
try:
205+
values["location"]="%s, %s"% (
206+
event["competitions"][0]["venue"]["address"]["city"],
207+
event["competitions"][0]["venue"]["address"]["state"]if (
208+
"state"inevent["competitions"][0]["venue"]["address"] )else""
209+
)
210+
except:
211+
values["location"]=event["competitions"][0]["venue"]["address"]["city"]
208212
try:
209213
values["tv_network"]=event["competitions"][0]["broadcasts"][0][
210214
"names"

‎custom_components/nfl/translations/en.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
"team_id":"Team Acronym",
88
"timeout":"Update Timeout (in seconds)"
99
},
10-
"description":"You can find your 2 or 3-letter acronym on the ESPN NFL page's banner, at the top score strip.",
11-
"title":"NFL"
10+
"description":"You can find your 2 or 3-letter acronym on the ESPN NFL page's banner, at the top score strip."
1211
}
1312
}
1413
},
@@ -20,8 +19,7 @@
2019
"team_id":"Team Acronym",
2120
"timeout":"Update Timeout (in seconds)"
2221
},
23-
"description":"You can find your 2 or 3-letter acronym on the ESPN NFL page's banner, at the top score strip.",
24-
"title":"NFL"
22+
"description":"You can find your 2 or 3-letter acronym on the ESPN NFL page's banner, at the top score strip."
2523
}
2624
}
2725
}

‎hacs.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
{
22
"name":"NFL",
3-
"domains": ["sensor" ],
43
"homeassistant":"0.95.4",
5-
"iot_class":"Cloud Polling",
64
"render_readme":true
75
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp