mirror of
https://github.com/home-assistant/core.git
synced 2025-11-13 04:50:17 +00:00
Use assignment expressions 20 (#57969)
This commit is contained in:
@@ -786,8 +786,7 @@ class BrSensor(SensorEntity):
|
||||
|
||||
if sensor_type == SYMBOL or sensor_type.startswith(CONDITION):
|
||||
# update weather symbol & status text
|
||||
condition = data.get(CONDITION)
|
||||
if condition:
|
||||
if condition := data.get(CONDITION):
|
||||
if sensor_type == SYMBOL:
|
||||
new_state = condition.get(EXACTNL)
|
||||
if sensor_type == CONDITION:
|
||||
|
||||
Reference in New Issue
Block a user