Powerview rename blackout to opaque (#80163)
This commit is contained in:
parent
82322e3804
commit
f5868f00a0
1 changed files with 10 additions and 10 deletions
|
@ -731,7 +731,7 @@ class PowerViewShadeTDBUTop(PowerViewShadeDualRailBase):
|
|||
|
||||
|
||||
class PowerViewShadeDualOverlappedBase(PowerViewShade):
|
||||
"""Represent a shade that has a front sheer and rear blackout panel.
|
||||
"""Represent a shade that has a front sheer and rear opaque panel.
|
||||
|
||||
This equates to two shades being controlled by one motor
|
||||
"""
|
||||
|
@ -744,7 +744,7 @@ class PowerViewShadeDualOverlappedBase(PowerViewShade):
|
|||
# 51 - 100 is equiv to 1-100 on other shades - one motor, two shades
|
||||
primary = (hd_position_to_hass(self.positions.primary, MAX_POSITION) / 2) + 50
|
||||
# poskind 2 represents the shade first half of the shade in hass
|
||||
# rear (blackout) must be fully open before front can move
|
||||
# rear (opaque) must be fully open before front can move
|
||||
# 51 - 100 is equiv to 1-100 on other shades - one motor, two shades
|
||||
secondary = hd_position_to_hass(self.positions.secondary, MAX_POSITION) / 2
|
||||
return ceil(primary + secondary)
|
||||
|
@ -773,7 +773,7 @@ class PowerViewShadeDualOverlappedBase(PowerViewShade):
|
|||
|
||||
|
||||
class PowerViewShadeDualOverlappedCombined(PowerViewShadeDualOverlappedBase):
|
||||
"""Represent a shade that has a front sheer and rear blackout panel.
|
||||
"""Represent a shade that has a front sheer and rear opaque panel.
|
||||
|
||||
This equates to two shades being controlled by one motor.
|
||||
The front shade must be completely down before the rear shade will move.
|
||||
|
@ -842,7 +842,7 @@ class PowerViewShadeDualOverlappedCombined(PowerViewShadeDualOverlappedBase):
|
|||
|
||||
|
||||
class PowerViewShadeDualOverlappedFront(PowerViewShadeDualOverlappedBase):
|
||||
"""Represent the shade front panel - These have a blackout panel too.
|
||||
"""Represent the shade front panel - These have a opaque panel too.
|
||||
|
||||
This equates to two shades being controlled by one motor.
|
||||
The front shade must be completely down before the rear shade will move.
|
||||
|
@ -850,7 +850,7 @@ class PowerViewShadeDualOverlappedFront(PowerViewShadeDualOverlappedBase):
|
|||
API Class: ShadeDualOverlapped + ShadeDualOverlappedTilt90 + ShadeDualOverlappedTilt180
|
||||
|
||||
Type 8 - Duolite (front and rear shades)
|
||||
Type 9 - Duolite with 90° Tilt (front bottom up shade that also tilts plus a rear blackout (non-tilting) shade)
|
||||
Type 9 - Duolite with 90° Tilt (front bottom up shade that also tilts plus a rear opaque (non-tilting) shade)
|
||||
Type 10 - Duolite with 180° Tilt
|
||||
"""
|
||||
|
||||
|
@ -903,7 +903,7 @@ class PowerViewShadeDualOverlappedFront(PowerViewShadeDualOverlappedBase):
|
|||
|
||||
|
||||
class PowerViewShadeDualOverlappedRear(PowerViewShadeDualOverlappedBase):
|
||||
"""Represent the shade front panel - These have a blackout panel too.
|
||||
"""Represent the shade front panel - These have a opaque panel too.
|
||||
|
||||
This equates to two shades being controlled by one motor.
|
||||
The front shade must be completely down before the rear shade will move.
|
||||
|
@ -911,7 +911,7 @@ class PowerViewShadeDualOverlappedRear(PowerViewShadeDualOverlappedBase):
|
|||
API Class: ShadeDualOverlapped + ShadeDualOverlappedTilt90 + ShadeDualOverlappedTilt180
|
||||
|
||||
Type 8 - Duolite (front and rear shades)
|
||||
Type 9 - Duolite with 90° Tilt (front bottom up shade that also tilts plus a rear blackout (non-tilting) shade)
|
||||
Type 9 - Duolite with 90° Tilt (front bottom up shade that also tilts plus a rear opaque (non-tilting) shade)
|
||||
Type 10 - Duolite with 180° Tilt
|
||||
"""
|
||||
|
||||
|
@ -975,7 +975,7 @@ class PowerViewShadeDualOverlappedRear(PowerViewShadeDualOverlappedBase):
|
|||
|
||||
|
||||
class PowerViewShadeDualOverlappedCombinedTilt(PowerViewShadeDualOverlappedCombined):
|
||||
"""Represent a shade that has a front sheer and rear blackout panel.
|
||||
"""Represent a shade that has a front sheer and rear opaque panel.
|
||||
|
||||
This equates to two shades being controlled by one motor.
|
||||
The front shade must be completely down before the rear shade will move.
|
||||
|
@ -984,7 +984,7 @@ class PowerViewShadeDualOverlappedCombinedTilt(PowerViewShadeDualOverlappedCombi
|
|||
Sibling Class: PowerViewShadeDualOverlappedFront, PowerViewShadeDualOverlappedRear
|
||||
API Class: ShadeDualOverlappedTilt90 + ShadeDualOverlappedTilt180
|
||||
|
||||
Type 9 - Duolite with 90° Tilt (front bottom up shade that also tilts plus a rear blackout (non-tilting) shade)
|
||||
Type 9 - Duolite with 90° Tilt (front bottom up shade that also tilts plus a rear opaque (non-tilting) shade)
|
||||
Type 10 - Duolite with 180° Tilt
|
||||
"""
|
||||
|
||||
|
@ -1016,7 +1016,7 @@ class PowerViewShadeDualOverlappedCombinedTilt(PowerViewShadeDualOverlappedCombi
|
|||
# 51 - 100 is equiv to 1-100 on other shades - one motor, two shades
|
||||
primary = (hd_position_to_hass(self.positions.primary, MAX_POSITION) / 2) + 50
|
||||
# poskind 2 represents the shade first half of the shade in hass
|
||||
# rear (blackout) must be fully open before front can move
|
||||
# rear (opaque) must be fully open before front can move
|
||||
# 51 - 100 is equiv to 1-100 on other shades - one motor, two shades
|
||||
secondary = hd_position_to_hass(self.positions.secondary, MAX_POSITION) / 2
|
||||
vane = hd_position_to_hass(self.positions.vane, self._max_tilt)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue